aboutsummaryrefslogtreecommitdiffstats
path: root/rawshark.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2015-06-27 06:10:20 +0100
committerAnders Broman <a.broman58@gmail.com>2015-06-27 14:32:35 +0000
commitb24a45c354f95e27e30dbcc0e9e3ef3af4676e9c (patch)
tree01895e45535de45abc417760316c76c99bae854f /rawshark.c
parent26a1ccbc05f0dfd425393d1455cfc0de0f253f3e (diff)
Avoid some Visual Studio Code Anaylzer warnings
Change-Id: I320386b02bea09658636a9281ee3cbba34a5e4cd Reviewed-on: https://code.wireshark.org/review/9188 Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com> Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'rawshark.c')
-rw-r--r--rawshark.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/rawshark.c b/rawshark.c
index 1561b8ac45..443b4b4258 100644
--- a/rawshark.c
+++ b/rawshark.c
@@ -319,7 +319,7 @@ raw_pipe_open(const char *pipe_name)
if (err != ERROR_PIPE_BUSY) {
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_IGNORE_INSERTS,
NULL, err, 0, (LPTSTR) &err_str, 0, NULL);
- fprintf(stderr, "rawshark: \"%s\" could not be opened: %s (error %d)\n",
+ fprintf(stderr, "rawshark: \"%s\" could not be opened: %s (error %lu)\n",
pipe_name, utf_16to8(err_str), err);
LocalFree(err_str);
return -1;
@@ -329,7 +329,7 @@ raw_pipe_open(const char *pipe_name)
err = GetLastError();
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_IGNORE_INSERTS,
NULL, err, 0, (LPTSTR) &err_str, 0, NULL);
- fprintf(stderr, "rawshark: \"%s\" could not be waited for: %s (error %d)\n",
+ fprintf(stderr, "rawshark: \"%s\" could not be waited for: %s (error %lu)\n",
pipe_name, utf_16to8(err_str), err);
LocalFree(err_str);
return -1;
@@ -1391,13 +1391,13 @@ static gboolean print_field_value(field_info *finfo, int cmd_line_index)
}
}
}
- printf(" %u=\"%s\"", cmd_line_index, label_s->str);
+ printf(" %d=\"%s\"", cmd_line_index, label_s->str);
return TRUE;
}
if(finfo->value.ftype->val_to_string_repr)
{
- printf(" %u=\"%s\"", cmd_line_index, fs_ptr);
+ printf(" %d=\"%s\"", cmd_line_index, fs_ptr);
return TRUE;
}
@@ -1406,7 +1406,7 @@ static gboolean print_field_value(field_info *finfo, int cmd_line_index)
* e.g. http
* We return n.a.
*/
- printf(" %u=\"n.a.\"", cmd_line_index);
+ printf(" %d=\"n.a.\"", cmd_line_index);
return TRUE;
}
@@ -1454,14 +1454,14 @@ protocolinfo_init(char *field)
switch (hfi->type) {
case FT_ABSOLUTE_TIME:
- printf("%u %s %s - ",
+ printf("%d %s %s - ",
g_cmd_line_index,
ftenum_to_string(hfi),
absolute_time_display_e_to_string((absolute_time_display_e)hfi->display));
break;
default:
- printf("%u %s %s - ",
+ printf("%d %s %s - ",
g_cmd_line_index,
ftenum_to_string(hfi),
field_display_e_to_string((field_display_e)hfi->display));