diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/snmp/src/compile/snmpc.src | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/snmp/src/compile/snmpc.src b/lib/snmp/src/compile/snmpc.src index 61d7a0b04f..f4336a3264 100644 --- a/lib/snmp/src/compile/snmpc.src +++ b/lib/snmp/src/compile/snmpc.src @@ -67,8 +67,7 @@ compile(State) -> File = mk_file(State), Options = mk_options(State), case snmpc:compile(File, Options) of - {ok, BinFileName} -> - io:format("BinFileName: ~p~n", [BinFileName]), + {ok, _BinFileName} -> ok; {error, Reason} -> io:format("Reason: ~p~n", [Reason]), @@ -76,7 +75,9 @@ compile(State) -> end. mk_file(#state{mib_file = MIB}) -> - MIB -- ".mib". + DirName = filename:dirname(MIB), + BaseName = filename:basename(MIB, ".mib"), + filename:join(DirName, BaseName). mk_options(#state{outdir = OutDir, db = DB, |