From a365fb8316cf797f89b2d4c5156fc2198ee140f7 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 5 Jun 2015 18:39:41 -0700 Subject: [PATCH] Print unsigned long values with %lu, not %ld. Change-Id: Ic437f5ec918c1cd4d39eb27e0a4fafb2a2f4b244 Reviewed-on: https://code.wireshark.org/review/8782 Reviewed-by: Guy Harris --- epan/except.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/epan/except.c b/epan/except.c index 2e79f902c0..de6021c362 100644 --- a/epan/except.c +++ b/epan/except.c @@ -422,10 +422,10 @@ int main(int argc, char **argv) /* inner catch */ msg = except_message(ex); if (msg == NULL) { - printf("caught exception (inner): s=%ld, c=%ld\n", + printf("caught exception (inner): s=%lu, c=%lu\n", except_group(ex), except_code(ex)); } else { - printf("caught exception (inner): \"%s\", s=%ld, c=%ld\n", + printf("caught exception (inner): \"%s\", s=%lu, c=%lu\n", msg, except_group(ex), except_code(ex)); } except_rethrow(ex); @@ -435,10 +435,10 @@ int main(int argc, char **argv) /* outer catch */ msg = except_message(ex); if (msg == NULL) { - printf("caught exception (outer): s=%ld, c=%ld\n", + printf("caught exception (outer): s=%lu, c=%lu\n", except_group(ex), except_code(ex)); } else { - printf("caught exception (outer): \"%s\", s=%ld, c=%ld\n", + printf("caught exception (outer): \"%s\", s=%lu, c=%lu\n", except_message(ex), except_group(ex), except_code(ex)); } }