From 72f58816ffbcb62fa2d6b500fa15d24f60135b1a Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Thu, 6 Dec 2012 13:54:09 +0100 Subject: [PATCH] Fixed format specifiers. --- lib/slave_config.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/slave_config.c b/lib/slave_config.c index 9066231f..d2eb1e49 100644 --- a/lib/slave_config.c +++ b/lib/slave_config.c @@ -521,7 +521,7 @@ ec_sdo_request_t *ecrt_slave_config_create_sdo_request(ec_slave_config_t *sc, if (size) { req->data = malloc(size); if (!req->data) { - fprintf(stderr, "Failed to allocate %u bytes of SDO data" + fprintf(stderr, "Failed to allocate %zu bytes of SDO data" " memory.\n", size); free(req); return 0; @@ -591,7 +591,7 @@ ec_reg_request_t *ecrt_slave_config_create_reg_request(ec_slave_config_t *sc, if (size) { reg->data = malloc(size); if (!reg->data) { - fprintf(stderr, "Failed to allocate %u bytes of register data" + fprintf(stderr, "Failed to allocate %zu bytes of register data" " memory.\n", size); free(reg); return 0; @@ -656,7 +656,7 @@ ec_voe_handler_t *ecrt_slave_config_create_voe_handler(ec_slave_config_t *sc, if (size) { voe->data = malloc(size); if (!voe->data) { - fprintf(stderr, "Failed to allocate %u bytes of VoE data" + fprintf(stderr, "Failed to allocate %zu bytes of VoE data" " memory.\n", size); free(voe); return 0;