-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests:kernel: added tests for printk left justifier #25
Conversation
@@ -97,7 +99,9 @@ void printk_test(void) | |||
"%u %2u %4u %8u\n", 42, 42, 42, 42); | |||
count += snprintk(ram_console + count, sizeof(ram_console) - count, | |||
"%u %02u %04u %08u\n", 42, 42, 42, 42); | |||
|
|||
count += snprintk(ram_console + count, sizeof(ram_console) - count, | |||
"%-8u%-6d%-4x%-2p%8d\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the %-2p doesn't seem to work as intended as it's still printing: 0x00000042, was it supposed to print "0x42" instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. You're right, prefix '0' should be unexpected. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test failure tracked as ZEP-2102
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ZEP-2102 has been justified by developer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree with @lpereira, lets adapt the test, making printk always behave as printf is a none goal, printk is a custom version that needs to be small and usable on the smallest of devices.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests adapted.
d97ad9c
to
262e17f
Compare
Added test case for printk the '-' indicator in format string (left justifier). Jira: ZEP-1599 Signed-off-by: Sharron LIU <[email protected]>
[BLE] Add missing flags arg to fix compile warning on write callback
According to STM32-E407.pdf (Revision I, June 2017), CON1 RST is connected to processor pin zephyrproject-rtos#25, not zephyrproject-rtos#23. Signed-off-by: Reto Schneider <[email protected]>
According to STM32-E407.pdf (Revision I, June 2017), CON1 RST is connected to processor pin #25, not #23. Signed-off-by: Reto Schneider <[email protected]>
* Configure automatic enable of SPI if Flash is selected * Corrected SPI Flash frequency option by removing the `CONFIG_` prefix Relates to zephyrproject-rtos#25
* Ports the board support of the Akita Gen2 development board to the Akita Gen2 production board. Signed-Off-By: Alexander Preißner <[email protected]> Closes zephyrproject-rtos#25
* Replaced all spaces with tabs to conform with Zephyr style guide Signed-Off-By: Alexander Preißner <[email protected]> Closes zephyrproject-rtos#25
Fix: full device config support BSP Closes zephyrproject-rtos#25 See merge request blik/embedded/zephyr!31
Added test case for printk the '-' indicator in format string (left justifier).
Jira: ZEP-1599
Signed-off-by: Sharron LIU [email protected]
This change is