Skip to content

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

@zephyrbot

Description

@zephyrbot

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)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions