aboutsummaryrefslogtreecommitdiffstats
path: root/extcap/sdjournal.c
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2021-12-18 18:48:20 +0000
committerJoão Valverde <j@v6e.pt>2021-12-19 21:21:58 +0000
commit0ccd69e530ed18ac19a4484c76bdbef94d1ab2b1 (patch)
treeffb5f202b47fbead8ff87e573afd72c856c91ae0 /extcap/sdjournal.c
parentf984def50cfb20c5a47f7ac41b7b72bd270f2bb7 (diff)
Replace g_strdup_printf() with ws_strdup_printf()
Use macros from inttypes.h.
Diffstat (limited to 'extcap/sdjournal.c')
-rw-r--r--extcap/sdjournal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extcap/sdjournal.c b/extcap/sdjournal.c
index f5ad03d723..c1c937c705 100644
--- a/extcap/sdjournal.c
+++ b/extcap/sdjournal.c
@@ -210,7 +210,7 @@ static int sdj_start_export(const int start_from_entries, const gboolean start_f
}
- appname = g_strdup_printf(SDJOURNAL_EXTCAP_INTERFACE " (Wireshark) %s.%s.%s",
+ appname = ws_strdup_printf(SDJOURNAL_EXTCAP_INTERFACE " (Wireshark) %s.%s.%s",
SDJOURNAL_VERSION_MAJOR, SDJOURNAL_VERSION_MINOR, SDJOURNAL_VERSION_RELEASE);
success = pcapng_write_section_header_block(fp,
NULL, /* Comment */
@@ -367,7 +367,7 @@ int main(int argc, char **argv)
// We don't have an SDJOURNAL DLT, so use USER0 (147).
extcap_base_register_interface(extcap_conf, SDJOURNAL_EXTCAP_INTERFACE, "systemd Journal Export", 147, "USER0");
- help_header = g_strdup_printf(
+ help_header = ws_strdup_printf(
" %s --extcap-interfaces\n"
" %s --extcap-interface=%s --extcap-dlts\n"
" %s --extcap-interface=%s --extcap-config\n"