[gnome-terminal/gnome-3-10] debug: Use the right printf modifiers



commit fdc82b27077f67a03be26aefeacca8c52a84d720
Author: Christian Persch <chpe gnome org>
Date:   Thu Sep 26 17:06:14 2013 +0200

    debug: Use the right printf modifiers
    
    G_GSIZE_FORMAT for gsize, not 'u'.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708596
    (cherry picked from commit 78783a3a190a98019fef212bc2a3d5beeb5f33d5)

 src/terminal-encoding.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/terminal-encoding.c b/src/terminal-encoding.c
index 19fc20f..83d8429 100644
--- a/src/terminal-encoding.c
+++ b/src/terminal-encoding.c
@@ -231,7 +231,7 @@ terminal_encoding_is_valid (TerminalEncoding *encoding)
                                " input  \"%s\"\n",
                                ascii_sample);
         _terminal_debug_print (TERMINAL_DEBUG_ENCODINGS,
-                               " output \"%s\" bytes read %u written %u\n",
+                               " output \"%s\" bytes read %" G_GSIZE_FORMAT " written %" G_GSIZE_FORMAT "\n",
                                converted ? converted : "(null)", bytes_read, bytes_written);
         if (error)
           _terminal_debug_print (TERMINAL_DEBUG_ENCODINGS,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]