improve log message
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 5 Jul 2008 19:32:53 +0000 (21:32 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 5 Jul 2008 19:32:53 +0000 (21:32 +0200)
GrowingBuffer.cpp

index b1c5dbc..3de12fc 100644 (file)
@@ -72,7 +72,7 @@ void GrowingBuffer::write(const void* buffer, size_t length) {
 }
 
 void GrowingBuffer::cut() {
-       GlobalSettings::isVerbose() && fprintf(stderr, "[%s:%d] discarding %d bytes.\n", __FILE__, __LINE__, position);
+       GlobalSettings::isVerbose() && fprintf(stderr, "[%s:%d] discarding %d bytes, %d bytes remaining.\n", __FILE__, __LINE__, position, limit - position);
        memcpy(data, (char*) data + position, position);
        limit -= position;
        position = 0;