diff --git a/scan_engine.cc b/scan_engine.cc index 72b311ccc..8aeae3d7b 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -3415,7 +3415,7 @@ static void processData(UltraScanInfo *USI) { long tv_diff; gettimeofday(&USI->now, NULL); tv_diff = TIMEVAL_MSEC_SUBTRACT(USI->now, tv_start); - if (tv_diff > 30) printf("processData took %lims\n", tv_diff); + if (tv_diff > 30) printf("%s took %lims\n", __func__, tv_diff); } } diff --git a/tcpip.cc b/tcpip.cc index c3a6b4559..546db422f 100644 --- a/tcpip.cc +++ b/tcpip.cc @@ -184,7 +184,7 @@ const char *proto2ascii(u8 proto, bool uppercase) { } static char *ll2shortascii(unsigned long long bytes, char *buf, int buflen) { - if (buflen < 2 || !buf) fatal("Bogus parameter passed to ll2shortascii"); + if (buflen < 2 || !buf) fatal("Bogus parameter passed to %s", __func__); if (bytes > 1000000) { snprintf(buf, buflen, "%.3fMB", bytes / 1000000.0);