Opened on 08/22/18 at 17:01:54
Closed on 09/06/18 at 05:05:21
#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 08/22/18 at 17:02:09 by Joel Sherrill
Owner: | set to Sebastian Huber |
---|---|
Status: | new → assigned |
comment:2 Changed on 09/06/18 at 05:05:21 by Sebastian Huber <sebastian.huber@…>
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
In 9a21fc7/rtems: