Skip to content

Commit

Permalink
Update log message format
Browse files Browse the repository at this point in the history
Fixes build issues on rt-kernel target.
  • Loading branch information
olbjo authored and hefloryd committed May 22, 2023
1 parent c1bd7ca commit 44a02f6
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/device/pf_plugsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/

#include "pf_includes.h"
#include <inttypes.h>

void pf_plugsm_released_alarm_req (
pnet_t * net,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 44a02f6

Please sign in to comment.