aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/candump.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2021-02-27 03:38:15 +0000
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-05-24 01:13:19 +0000
commit9ba97d12d6b1b2e6e06311375c07ce975fc08205 (patch)
tree33343e07bc84b8d930546c4e91a987712edb021b /wiretap/candump.c
parentde00cdd5129c30fdd138fe49da2003a5d3f74d8f (diff)
Add ws_debug() and use it
Replace most instances of ws_debug_printf() except in epan/dissectors and dissector plugins. Some replacements use printf(), some use ws_debug(), and some were removed because they were dead or judged to be temporary.
Diffstat (limited to 'wiretap/candump.c')
-rw-r--r--wiretap/candump.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/wiretap/candump.c b/wiretap/candump.c
index 7257883585..8a965334d4 100644
--- a/wiretap/candump.c
+++ b/wiretap/candump.c
@@ -102,7 +102,7 @@ candump_parse(FILE_T fh, msg_t *msg, gint64 *offset, int *err, char **err_info)
gint64 seek_off;
#ifdef CANDUMP_DEBUG
- ws_debug_printf("%s: Trying candump file decoder\n", G_STRFUNC);
+ candump_debug_printf("%s: Trying candump file decoder\n", G_STRFUNC);
#endif
state.fh = fh;
@@ -114,7 +114,7 @@ candump_parse(FILE_T fh, msg_t *msg, gint64 *offset, int *err, char **err_info)
seek_off = file_tell(fh);
#ifdef CANDUMP_DEBUG
- ws_debug_printf("%s: Starting parser at offset %" PRIi64 "\n", G_STRFUNC, seek_off);
+ candump_debug_printf("%s: Starting parser at offset %" PRIi64 "\n", G_STRFUNC, seek_off);
#endif
state.file_bytes_read = 0;
ok = run_candump_parser(&state, err, err_info);
@@ -134,7 +134,7 @@ candump_parse(FILE_T fh, msg_t *msg, gint64 *offset, int *err, char **err_info)
return FALSE;
#ifdef CANDUMP_DEBUG
- ws_debug_printf("%s: Success\n", G_STRFUNC);
+ candump_debug_printf("%s: Success\n", G_STRFUNC);
#endif
if (offset)
@@ -160,7 +160,7 @@ candump_open(wtap *wth, int *err, char **err_info)
}
#ifdef CANDUMP_DEBUG
- ws_debug_printf("%s: This is our file\n", G_STRFUNC);
+ candump_debug_printf("%s: This is our file\n", G_STRFUNC);
#endif
if (file_seek(wth->fh, 0, SEEK_SET, err) == -1)
@@ -188,14 +188,14 @@ candump_read(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info,
msg_t msg;
#ifdef CANDUMP_DEBUG
- ws_debug_printf("%s: Try reading at offset %" PRIi64 "\n", G_STRFUNC, file_tell(wth->fh));
+ candump_debug_printf("%s: Try reading at offset %" PRIi64 "\n", G_STRFUNC, file_tell(wth->fh));
#endif
if (!candump_parse(wth->fh, &msg, data_offset, err, err_info))
return FALSE;
#ifdef CANDUMP_DEBUG
- ws_debug_printf("%s: Stopped at offset %" PRIi64 "\n", G_STRFUNC, file_tell(wth->fh));
+ candump_debug_printf("%s: Stopped at offset %" PRIi64 "\n", G_STRFUNC, file_tell(wth->fh));
#endif
candump_write_packet(rec, buf, &msg);
@@ -210,7 +210,7 @@ candump_seek_read(wtap *wth , gint64 seek_off, wtap_rec *rec,
msg_t msg;
#ifdef CANDUMP_DEBUG
- ws_debug_printf("%s: Read at offset %" PRIi64 "\n", G_STRFUNC, seek_off);
+ candump_debug_printf("%s: Read at offset %" PRIi64 "\n", G_STRFUNC, seek_off);
#endif
if (file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1)