From 44a02f6a8f6afa13908a84bb24e9e0f32857d1be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ola=20Bj=C3=B6rsne?= Date: Mon, 22 May 2023 10:47:27 +0200 Subject: [PATCH] Update log message format Fixes build issues on rt-kernel target. --- src/device/pf_plugsm.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/device/pf_plugsm.c b/src/device/pf_plugsm.c index 9859f3fe..7857b7af 100644 --- a/src/device/pf_plugsm.c +++ b/src/device/pf_plugsm.c @@ -23,6 +23,7 @@ */ #include "pf_includes.h" +#include void pf_plugsm_released_alarm_req ( pnet_t * net, @@ -62,7 +63,8 @@ void pf_plugsm_released_alarm_req ( LOG_DEBUG ( PNET_LOG, "PLUGSM(%d): Queued released alarm.\n" - " AREP: %u, API: %u, Slot: 0x%x, Subslot: 0x%x\n", + " AREP: %" PRIu16 ", API: %" PRIu32 ", Slot: 0x%" PRIx16 + ", Subslot: 0x%" PRIx16 "\n", __LINE__, ar->arep, api, @@ -76,7 +78,8 @@ void pf_plugsm_released_alarm_req ( LOG_DEBUG ( PNET_LOG, "PLUGSM(%d): Sending released alarm to controller.\n" - " AREP: %u, API: %u, Slot: 0x%x, Subslot: 0x%x\n", + " AREP: %" PRIu16 ", API: %" PRIu32 ", Slot: 0x%" PRIx16 + ", Subslot: 0x%" PRIx16 "\n", __LINE__, ar->arep, plug->queue[plug->current].api, @@ -154,7 +157,8 @@ void pf_plugsm_application_ready_req (pnet_t * net, pf_ar_t * ar) LOG_DEBUG ( PNET_LOG, "PLUGSM(%d): Sending application ready to controller.\n" - " AREP: %u, API: %u, Slot: 0x%x, Subslot: 0x%x\n", + " AREP: %" PRIu16 ", API: %" PRIu32 ", Slot: 0x%" PRIx16 + ", Subslot: 0x%" PRIx16 "\n", __LINE__, ar->arep, plug->queue[plug->current].api, @@ -182,7 +186,8 @@ int pf_plugsm_application_ready_cnf (pnet_t * net, pf_ar_t * ar) LOG_DEBUG ( PNET_LOG, "PLUGSM(%d): Application ready confirmed by controller.\n" - " AREP: %u, API: %u, Slot: 0x%x, Subslot: 0x%x\n", + " AREP: %" PRIu16 ", API: %" PRIu32 ", Slot: 0x%" PRIx16 + ", Subslot: 0x%" PRIx16 "\n", __LINE__, ar->arep, plug->queue[plug->current].api, @@ -202,7 +207,8 @@ int pf_plugsm_application_ready_cnf (pnet_t * net, pf_ar_t * ar) LOG_DEBUG ( PNET_LOG, "PLUGSM(%d): Sending released alarm to controller.\n" - " AREP: %u, API: %u, Slot: 0x%x, Subslot: 0x%x\n", + " AREP: %" PRIu16 ", API: %" PRIu32 ", Slot: 0x%" PRIx16 + ", Subslot: 0x%" PRIx16 "\n", __LINE__, ar->arep, plug->queue[plug->current].api,