diff mbox series

[1/1] Fix size_t printf format specifiers

Message ID 20230912004030.3116213-1-james.hilliard1@gmail.com
State Accepted
Delegated to: Stefano Babic
Headers show
Series [1/1] Fix size_t printf format specifiers | expand

Commit Message

James Hilliard Sept. 12, 2023, 12:40 a.m. UTC
Fixes compilation warnings due to incorrect specifiers.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 handlers/copy_handler.c  | 2 +-
 handlers/rdiff_handler.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/handlers/copy_handler.c b/handlers/copy_handler.c
index 3a8c1e0..e463bb5 100644
--- a/handlers/copy_handler.c
+++ b/handlers/copy_handler.c
@@ -266,7 +266,7 @@  static int copy_image_file(struct img_type *img, void *data)
 	/*
 	 * Check for recursive copy
 	 */
-	TRACE("Copying %lu from %s to %s", size, copyfrom, img->device);
+	TRACE("Copying %zu from %s to %s", size, copyfrom, img->device);
 
 	recursive = strtobool(dict_get_value(&img->properties, "recursive"));
 	createdest = strtobool(dict_get_value(&img->properties, "create-destination"));
diff --git a/handlers/rdiff_handler.c b/handlers/rdiff_handler.c
index 268ec6b..e01a127 100644
--- a/handlers/rdiff_handler.c
+++ b/handlers/rdiff_handler.c
@@ -173,7 +173,7 @@  static inline void rdiff_stats(const char* msg, struct rdiff_t *rdiff_state, rs_
 		case RS_RUNNING: strresult = (char*)"RUNNING"; break;
 		default: break;
 	}
-	TRACE("%s avail_in=%ld avail_out=%ld result=%s",
+	TRACE("%s avail_in=%zu avail_out=%zu result=%s",
 		  msg, buffers->avail_in, buffers->avail_out, strresult);
 }