[libdmapsharing] Make use of G_GSIZE_FORMAT and G_GSSIZE_FORMAT
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing] Make use of G_GSIZE_FORMAT and G_GSSIZE_FORMAT
- Date: Tue, 30 Jun 2020 11:49:03 +0000 (UTC)
commit a124a4cdaa196f0e65d6d2db994c4748385f7849
Author: W. Michael Petullo <mike flyn org>
Date: Tue Jun 30 06:48:53 2020 -0500
Make use of G_GSIZE_FORMAT and G_GSSIZE_FORMAT
libdmapsharing/dmap-private-utils.c | 2 +-
libdmapsharing/dmap-structure.c | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/libdmapsharing/dmap-private-utils.c b/libdmapsharing/dmap-private-utils.c
index be1d8d4..54fcf40 100644
--- a/libdmapsharing/dmap-private-utils.c
+++ b/libdmapsharing/dmap-private-utils.c
@@ -36,7 +36,7 @@ dmap_private_utils_write_next_chunk (SoupMessage * message, ChunkData * cd)
if (read_size > 0) {
soup_message_body_append (message->response_body,
SOUP_MEMORY_TAKE, chunk, read_size);
- g_debug ("Read/wrote %zd bytes.", read_size);
+ g_debug ("Read/wrote %"G_GSSIZE_FORMAT" bytes.", read_size);
} else {
if (error != NULL) {
g_warning ("Error reading from input stream: %s",
diff --git a/libdmapsharing/dmap-structure.c b/libdmapsharing/dmap-structure.c
index 126f5a4..7ab186b 100644
--- a/libdmapsharing/dmap-structure.c
+++ b/libdmapsharing/dmap-structure.c
@@ -625,8 +625,10 @@ _parse_container_buffer (GNode * parent, const guint8 * buf,
* then get out before we start processing it
*/
if (codesize > buf_length - l - 4) {
- g_set_error(error, DMAP_ERROR, DMAP_STATUS_INVALID_CONTENT_CODE_SIZE,
- "Invalid codesize %zd received in buffer of length %zd",
+ g_set_error(error, DMAP_ERROR,
+ DMAP_STATUS_INVALID_CONTENT_CODE_SIZE,
+ "Invalid codesize %"G_GSIZE_FORMAT" "
+ "received in buffer of length %"G_GSIZE_FORMAT,
codesize, buf_length);
goto done;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]