aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/log3gpp.c
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2021-12-17 20:05:19 +0000
committerJoão Valverde <j@v6e.pt>2021-12-19 20:06:13 +0000
commitfe5248717faa1c99a4d0c761fa8da63afffc5d3f (patch)
tree80dfeee421091a44c88f80b7a65edc0590e4b4e5 /wiretap/log3gpp.c
parentc5a19582e4e18605e8528cd999221444f7ece318 (diff)
Replace g_snprintf() with snprintf()
Use macros from inttypes.h with format strings.
Diffstat (limited to 'wiretap/log3gpp.c')
-rw-r--r--wiretap/log3gpp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/log3gpp.c b/wiretap/log3gpp.c
index 96afbb6887..6b3d4a5321 100644
--- a/wiretap/log3gpp.c
+++ b/wiretap/log3gpp.c
@@ -281,7 +281,7 @@ gboolean log3gpp_read(wtap* wth, wtap_rec* rec, Buffer* buf,
char timestamp_string[MAX_TIMESTAMP_LEN+1];
/*not used gint64 *pkey = NULL;*/
- g_snprintf(timestamp_string, 32, "%d.%04d", seconds, useconds/100);
+ snprintf(timestamp_string, 32, "%d.%04d", seconds, useconds/100);
/* All packets go to 3GPP protocol stub dissector */
rec->rec_header.packet_header.pkt_encap = WTAP_ENCAP_LOG_3GPP;
@@ -407,7 +407,7 @@ log3gpp_seek_read(wtap *wth, gint64 seek_off,
int n;
int stub_offset = 0;
char timestamp_string[32];
- g_snprintf(timestamp_string, 32, "%d.%04d", seconds, useconds/100);
+ snprintf(timestamp_string, 32, "%d.%04d", seconds, useconds/100);
/* Make sure all packets go to log3gpp dissector */
rec->rec_header.packet_header.pkt_encap = WTAP_ENCAP_LOG_3GPP;
@@ -460,7 +460,7 @@ log3gpp_seek_read(wtap *wth, gint64 seek_off,
/* If get here, must have failed */
*err = errno;
*err_info = g_strdup_printf("prot 3gpp: seek_read failed to read/parse "
- "line at position %" G_GINT64_MODIFIER "d",
+ "line at position %" PRId64,
seek_off);
return FALSE;
}