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) #3060

Closed
zephyrbot opened this issue Jan 19, 2017 · 1 comment
Closed
Assignees
Labels
area: C Library C Standard Library area: Miscellaneous Enhancement Changes/Updates/Additions to existing features priority: medium Medium impact/importance bug
Milestone

Comments

@zephyrbot
Copy link
Collaborator

zephyrbot 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)

@zephyrbot
Copy link
Collaborator Author

by Sharron LIU:

test case under review and merge.
#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 ZEP-2087.

@zephyrbot zephyrbot added priority: medium Medium impact/importance bug area: Miscellaneous area: C Library C Standard Library Enhancement Changes/Updates/Additions to existing features labels Sep 23, 2017
@zephyrbot zephyrbot added this to the v1.8.0 milestone Sep 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: C Library C Standard Library area: Miscellaneous Enhancement Changes/Updates/Additions to existing features priority: medium Medium impact/importance bug
Projects
None yet
Development

No branches or pull requests

2 participants