[RTEMS Project] #3267: rtems/status-checks.h calls printk without including the needed header.
RTEMS trac
trac at rtems.org
Wed Dec 27 02:22:40 UTC 2017
#3267: rtems/status-checks.h calls printk without including the needed header.
-------------------------+--------------------
Reporter: Chris Johns | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: 5.1
Component: lib | Version: 5
Severity: normal | Keywords:
-------------------------+--------------------
{{{
/opt/work/chris/rtems/kernel/rtems.git/cpukit/include/rtems/status-
checks.h:74:7: warning: implicit declaration of function 'printk'; did you
mean 'printf'? [-Wimplicit-function-declaration]
printk( fmt, ##__VA_ARGS__)
^
/opt/work/chris/rtems/kernel/rtems.git/cpukit/include/rtems/status-
checks.h:86:3: note: in expansion of macro 'RTEMS_SYSLOG_PRINT'
RTEMS_SYSLOG_PRINT( "%s: " fmt, __func__, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~
/opt/work/chris/rtems/kernel/rtems.git/cpukit/include/rtems/status-
checks.h:107:3: note: in expansion of macro 'RTEMS_SYSLOG'
RTEMS_SYSLOG( "Error: " fmt, ##__VA_ARGS__)
^~~~~~~~~~~~
/opt/work/chris/rtems/kernel/rtems.git/cpukit/include/rtems/status-
checks.h:113:3: note: in expansion of macro 'RTEMS_SYSLOG_ERROR'
RTEMS_SYSLOG_ERROR( "SC = %i: %s\n", (int) sc, msg);
^~~~~~~~~~~~~~~~~~
/opt/work/chris/rtems/kernel/rtems.git/cpukit/include/rtems/status-
checks.h:152:5: note: in expansion of macro 'RTEMS_SYSLOG_ERROR_WITH_SC'
RTEMS_SYSLOG_ERROR_WITH_SC( sc, msg); \
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/work/chris/rtems/kernel/rtems.git/c/src/lib/libbsp/lm32/milkymist/../../lm32/shared/milkymist_gpio/gpio.c:57:5:
note: in expansion of macro 'RTEMS_CHECK_SC'
RTEMS_CHECK_SC(sc, "create GPIO device");
^~~~~~~~~~~~~~
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/3267>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list