diff options
Diffstat (limited to 'wsutil/str_util.c')
-rw-r--r-- | wsutil/str_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wsutil/str_util.c b/wsutil/str_util.c index da33c4cfb4..ad63e477bf 100644 --- a/wsutil/str_util.c +++ b/wsutil/str_util.c @@ -23,6 +23,7 @@ #include "config.h" #include "str_util.h" +#include "ws_diag_control.h" int ws_xton(char ch) @@ -135,6 +136,7 @@ format_size(gint64 size, format_size_flags_e flags) power = 1024; } +DIAG_OFF(format=) if (size / power / power / power / power >= 10) { g_string_printf(human_str, "%" GROUP_FLAG G_GINT64_MODIFIER "d %s", size / power / power / power / power, prefix[pfx_off]); } else if (size / power / power / power >= 10) { @@ -147,6 +149,7 @@ format_size(gint64 size, format_size_flags_e flags) g_string_printf(human_str, "%" GROUP_FLAG G_GINT64_MODIFIER "d", size); is_small = TRUE; } +DIAG_ON(format=) switch (flags & FORMAT_SIZE_UNIT_MASK) { case format_size_unit_none: |