Skip to content
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

Merged
merged 1 commit into from
May 8, 2017

Conversation

sharronliu
Copy link

@sharronliu sharronliu commented May 1, 2017

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 Reviewable

@nashif nashif self-assigned this May 1, 2017
@@ -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",
Copy link
Contributor

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?

Copy link
Author

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.

Copy link
Author

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

Copy link
Author

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.

Copy link
Member

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.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests adapted.

@sharronliu sharronliu force-pushed the tests_v1.8 branch 3 times, most recently from d97ad9c to 262e17f Compare May 8, 2017 05:00
Added test case for printk the '-' indicator in format string
(left justifier).

Jira: ZEP-1599

Signed-off-by: Sharron LIU <[email protected]>
@nashif nashif merged commit 6c6182d into zephyrproject-rtos:master May 8, 2017
nagineni pushed a commit to nagineni/zephyr that referenced this pull request Nov 20, 2017
[BLE] Add missing flags arg to fix compile warning on write callback
rettichschnidi added a commit to rettichschnidi/zephyr that referenced this pull request Mar 6, 2018
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]>
galak pushed a commit that referenced this pull request Mar 6, 2018
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]>
frasa pushed a commit to blik-GmbH/zephyr that referenced this pull request Mar 25, 2019
* Configure automatic enable of SPI if Flash is selected
* Corrected SPI Flash frequency option by removing the `CONFIG_` prefix

Relates to zephyrproject-rtos#25
frasa pushed a commit to blik-GmbH/zephyr that referenced this pull request Mar 25, 2019
* 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
frasa pushed a commit to blik-GmbH/zephyr that referenced this pull request Mar 25, 2019
* Replaced all spaces with tabs to conform with Zephyr style guide

Signed-Off-By: Alexander Preißner <[email protected]>

Closes zephyrproject-rtos#25
frasa added a commit to blik-GmbH/zephyr that referenced this pull request Mar 25, 2019
Fix: full device config support BSP

Closes zephyrproject-rtos#25

See merge request blik/embedded/zephyr!31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants