]> git.pld-linux.org Git - packages/net-snmp.git/blobdiff - net-snmp-libpci-init.patch
- use net-snmp logging functions for error reporting
[packages/net-snmp.git] / net-snmp-libpci-init.patch
index b29ce268b401979bd06a22dd274d08a08d622697..1aa748cb63df688c468d8e8dd0816822be9b6cf7 100644 (file)
@@ -11,9 +11,9 @@
 +  va_list args;
 +
 +  va_start(args, msg);
-+  fputs("pcilib: ", stderr);
-+  vfprintf(stderr, msg, args);
-+  fputc('\n', stderr);
++  snmp_log(LOG_ERR, "pcilib: ");
++  snmp_vlog(LOG_ERR, msg, args);
++  snmp_log(LOG_ERR, "\n");
 +  _net_snmp_pci_status = 0;
 +}
  #endif
This page took 0.026833 seconds and 4 git commands to generate.