[gjs: 6/16] util: Fix wrong format specifiers




commit 85516f96edd3817899217c1f370069e7e07db7a6
Author: Philip Chimento <philip chimento gmail com>
Date:   Fri Nov 20 18:06:00 2020 -0800

    util: Fix wrong format specifiers
    
    It seems that these two format specifiers were reversed. Caught by
    cppcheck.

 libgjs-private/gjs-util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgjs-private/gjs-util.c b/libgjs-private/gjs-util.c
index 605229c7..30b6e8fc 100644
--- a/libgjs-private/gjs-util.c
+++ b/libgjs-private/gjs-util.c
@@ -175,7 +175,7 @@ int gjs_open_bytes(GBytes* bytes, GError** error) {
     }
 
     if ((size_t)bytes_written != count)
-        g_warning("%s: %zd bytes sent, only %zu bytes written", __func__, count,
+        g_warning("%s: %zu bytes sent, only %zd bytes written", __func__, count,
                   bytes_written);
 
     result = close(pipefd[1]);


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