aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-07-16 22:29:35 -0400
committerMichael Mann <mmann78@netscape.net>2016-07-17 13:10:37 +0000
commitdb1e0bcf65e2a1cd4f4e5fedf09247562ac1a607 (patch)
treee7fc718cf6e4117859d87074f06789f1fa91ae70 /epan/proto.c
parent25dfe445a109bbeaf38e6394f81a3bc2880850a3 (diff)
Fix printf style parameters complaints from VS Code Analysis
Change-Id: I5669e2442582f899643fae4a9f86ab6d505dde07 Reviewed-on: https://code.wireshark.org/review/16505 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/proto.c')
-rw-r--r--epan/proto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/proto.c b/epan/proto.c
index 07574aa324..aa457649b3 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -8416,15 +8416,15 @@ proto_registrar_dump_fieldcount(void)
gpa_hfinfo.len, deregistered_count, protocol_count,
same_name_count);
- printf ("%u fields were pre-allocated.\n%s", PROTO_PRE_ALLOC_HF_FIELDS_MEM,
+ printf ("%d fields were pre-allocated.\n%s", PROTO_PRE_ALLOC_HF_FIELDS_MEM,
(gpa_hfinfo.allocated_len > PROTO_PRE_ALLOC_HF_FIELDS_MEM) ?
"* * Please increase PROTO_PRE_ALLOC_HF_FIELDS_MEM (in epan/proto.c)! * *\n\n" :
"\n");
printf ("The header field table consumes %u KiB of memory.\n",
- (int)(gpa_hfinfo.allocated_len * sizeof(header_field_info *) / 1024));
+ (unsigned int)(gpa_hfinfo.allocated_len * sizeof(header_field_info *) / 1024));
printf ("The fields themselves consume %u KiB of memory.\n",
- (int)(gpa_hfinfo.len * sizeof(header_field_info) / 1024));
+ (unsigned int)(gpa_hfinfo.len * sizeof(header_field_info) / 1024));
return (gpa_hfinfo.allocated_len > PROTO_PRE_ALLOC_HF_FIELDS_MEM);
}