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

printk() support for the '-' indicator in format string (left justifier) #1460

Closed
nashif opened this issue Jan 19, 2017 · 1 comment
Closed

Comments

@nashif
Copy link

nashif commented Jan 19, 2017

Reported by Tomasz Bursztyka:

For instance:

printk("%-8u", a_number);

For now, only printf() supports it, but in some shell modules, having a nice output is necessary (a lot of complex information can be written, and it's all worse if everything is not nicely formated). And since printk() is preferred (lighter than printf etc...), it would be nice to get that support in printk.

(Imported from Jira ZEP-1599)

@nashif
Copy link
Author

nashif commented May 1, 2017

by Sharron LIU:

test case under review and merge.
zephyrproject-rtos/zephyr#25

verified printk left justifier passed at all qemu platforms (@qemu_x86, @qemu_cortex_m3, @qemu_rescv32, @qemu_nios2). Closing this. Thanks.

NOTE: the test @qemu_cortex_m3 build failed due to recent changes at DTS. This's not related to this story. It is a different issue, logged as GH-1928.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant