aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/buffer.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2009-03-07 04:47:06 +0000
committerGuy Harris <guy@alum.mit.edu>2009-03-07 04:47:06 +0000
commite6ccfc6944495314302a64ce92375130ea64dc10 (patch)
tree7f1865de303acd667941be0dea939d80ef64fda8 /wiretap/buffer.c
parent76582cf2e2383d23ecfb7bd90fb76d808873d69a (diff)
More P64 stuff.
svn path=/trunk/; revision=27636
Diffstat (limited to 'wiretap/buffer.c')
-rw-r--r--wiretap/buffer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/wiretap/buffer.c b/wiretap/buffer.c
index 09ef1993a0..f7f977c06f 100644
--- a/wiretap/buffer.c
+++ b/wiretap/buffer.c
@@ -97,8 +97,9 @@ void buffer_append(Buffer* buffer, guchar *from, gsize bytes)
void buffer_remove_start(Buffer* buffer, gsize bytes)
{
if (buffer->start + bytes > buffer->first_free) {
- g_error("buffer_remove_start trying to remove %d bytes. s=%d ff=%d!\n",
- bytes, buffer->start, buffer->first_free);
+ g_error("buffer_remove_start trying to remove %" G_GINT64_MODIFIER "u bytes. s=%" G_GINT64_MODIFIER "u ff=%" G_GINT64_MODIFIER "u!\n",
+ (guint64)bytes, (guint64)buffer->start,
+ (guint64)buffer->first_free);
exit(1);
}
buffer->start += bytes;