#3504 closed defect (fixed)

Warning and formatting in bsps/powerpc/mpc55xxevb/dev/dspi.c

Reported by: Joel Sherrill Owned by: Sebastian Huber
Priority: normal Milestone: 5.1
Component: arch/powerpc Version: 5
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

This is a printf format warning. Also the file is formatted with tabs and not two spaces.

In file included from ../../../../../../../../rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/../../../../../../bsps/powerpc/mpc55xxevb/dev/dspi.c:32:0:
../../../../../../../../rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/../../../../../../bsps/powerpc/mpc55xxevb/dev/dspi.c: In function 'mpc55xx_dspi_edma_done':
/home/joel/rtems-work/rtems-testing/rtems/rtems/cpukit/include/rtems/status-checks.h:88:23: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'uint32_t {aka long unsigned int}' [-Wformat=]

RTEMS_SYSLOG_PRINT( "%s: " fmt, func, ##VA_ARGS)


/home/joel/rtems-work/rtems-testing/rtems/rtems/cpukit/include/rtems/status-checks.h:76:15: note: in definition of macro 'RTEMS_SYSLOG_PRINT'

printk( fmt, ##VA_ARGS)


/home/joel/rtems-work/rtems-testing/rtems/rtems/cpukit/include/rtems/status-checks.h:109:3: note: in expansion of macro 'RTEMS_SYSLOG'

RTEMS_SYSLOG( "Error: " fmt, ##VA_ARGS)
~

../../../../../../../../rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/../../../../../../bsps/powerpc/mpc55xxevb/dev/dspi.c:122:3: note: in expansion of macro 'RTEMS_SYSLOG_ERROR'

RTEMS_SYSLOG_ERROR( "eDMA error: 0x%08x\n", error_status);
~

../../../../../../../../rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/../../../../../../bsps/powerpc/mpc55xxevb/dev/dspi.c:122:41: note: format string is defined here

RTEMS_SYSLOG_ERROR( "eDMA error: 0x%08x\n", error_status);

~
%08lx

Change History (2)

comment:1 Changed on Aug 22, 2018 at 5:02:09 PM by Joel Sherrill

Owner: set to Sebastian Huber
Status: newassigned

comment:2 Changed on Sep 6, 2018 at 5:05:21 AM by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: assignedclosed

In 9a21fc7/rtems:

bsp/mpc55xxevb: Fix format warning

Close #3504.

Note: See TracTickets for help on using tickets.