From: Victor Julien Date: Sat, 6 May 2023 05:16:46 +0000 (+0200) Subject: profiling: spelling X-Git-Tag: suricata-7.0.0-rc2~214 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=203ca9cdff27a751eefb3a8a0e9fe3082ae87f5d;p=thirdparty%2Fsuricata.git profiling: spelling --- diff --git a/src/util-profiling.c b/src/util-profiling.c index 7d357a37b3..5ba36f9df2 100644 --- a/src/util-profiling.c +++ b/src/util-profiling.c @@ -113,7 +113,7 @@ thread_local int profiling_rules_entered = 0; void SCProfilingDumpPacketStats(void); const char * PacketProfileDetectIdToString(PacketProfileDetectId id); -const char * PacketProfileLoggertIdToString(LoggerId id); +const char *PacketProfileLoggerIdToString(LoggerId id); static void PrintCSVHeader(void); static void FormatNumber(uint64_t num, char *str, size_t size) @@ -674,8 +674,11 @@ void SCProfilingDumpPacketStats(void) double percent = (long double)pd->tot / (long double)total * 100; - fprintf(fp, "%-24s IPv4 %3d %12"PRIu64" %12"PRIu64" %12"PRIu64" %12"PRIu64" %12s %-6.2f\n", - PacketProfileLoggertIdToString(m), p, pd->cnt, pd->min, pd->max, (uint64_t)(pd->tot / pd->cnt), totalstr, percent); + fprintf(fp, + "%-24s IPv4 %3d %12" PRIu64 " %12" PRIu64 " %12" PRIu64 + " %12" PRIu64 " %12s %-6.2f\n", + PacketProfileLoggerIdToString(m), p, pd->cnt, pd->min, pd->max, + (uint64_t)(pd->tot / pd->cnt), totalstr, percent); } } for (int m = 0; m < LOGGER_SIZE; m++) { @@ -689,8 +692,11 @@ void SCProfilingDumpPacketStats(void) double percent = (long double)pd->tot / (long double)total * 100; - fprintf(fp, "%-24s IPv6 %3d %12"PRIu64" %12"PRIu64" %12"PRIu64" %12"PRIu64" %12s %-6.2f\n", - PacketProfileLoggertIdToString(m), p, pd->cnt, pd->min, pd->max, (uint64_t)(pd->tot / pd->cnt), totalstr, percent); + fprintf(fp, + "%-24s IPv6 %3d %12" PRIu64 " %12" PRIu64 " %12" PRIu64 + " %12" PRIu64 " %12s %-6.2f\n", + PacketProfileLoggerIdToString(m), p, pd->cnt, pd->min, pd->max, + (uint64_t)(pd->tot / pd->cnt), totalstr, percent); } } @@ -761,7 +767,7 @@ static void PrintCSVHeader(void) /* individual loggers */ for (LoggerId i = 0; i < LOGGER_SIZE; i++) { - fprintf(packet_profile_csv_fp, "%s,", PacketProfileLoggertIdToString(i)); + fprintf(packet_profile_csv_fp, "%s,", PacketProfileLoggerIdToString(i)); } fprintf(packet_profile_csv_fp, "\n"); @@ -1253,7 +1259,7 @@ const char * PacketProfileDetectIdToString(PacketProfileDetectId id) * * \retval string equivalent for the LoggerId id */ -const char * PacketProfileLoggertIdToString(LoggerId id) +const char *PacketProfileLoggerIdToString(LoggerId id) { switch (id) { CASE_CODE(LOGGER_UNDEFINED);