]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Added a few debugging messages to routine that loads mib file.
authorrousskov <>
Sun, 1 Mar 1998 12:26:43 +0000 (12:26 +0000)
committerrousskov <>
Sun, 1 Mar 1998 12:26:43 +0000 (12:26 +0000)
snmplib/parse.c

index dd3234b640301501ad2d763af0ec26703fa609b8..99e5bbfa00fad0bb1140e94b0d4cc0eb44231d94 100644 (file)
@@ -1092,9 +1092,13 @@ read_mib(filename)
     char mbuf[256];
     char *p;
 
+    snmplib_debug(0, "reading MIB file: '%s'\n", filename);
+
     fp = fopen(filename, "r");
-    if (fp == NULL)
+    if (fp == NULL) {
+       snmplib_debug(0, "failed to open MIB file: '%s'\n", filename);
        return(NULL);
+    }
 
     mbuf[0]='\0';
     while ( (p=fgets(mbuf, 256, fp)) && strncmp(&mbuf[4], CURRENT_MIB_VERSION,