After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 622597 - [format] Add 'x' format specifier and field width
[format] Add 'x' format specifier and field width
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2010-06-24 13:21 UTC by Florian Müllner
Modified: 2010-06-24 13:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[format] Add 'x' format specifier and field width (4.33 KB, patch)
2010-06-24 13:21 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2010-06-24 13:21:07 UTC
See patch - inspired by bug 622508
Comment 1 Florian Müllner 2010-06-24 13:21:11 UTC
Created attachment 164505 [details] [review]
[format] Add 'x' format specifier and field width

Sometimes it is useful to print numbers in hex format - add the
appropriate specifier. Also support a minimum field width to
pad the formatted string with spaces (or zeros if the width is
prefixed with '0').
Comment 2 Colin Walters 2010-06-24 13:49:51 UTC
Review of attachment 164505 [details] [review]:

Looks good.
Comment 3 Florian Müllner 2010-06-24 13:55:27 UTC
Attachment 164505 [details] pushed as a84e2e3 - [format] Add 'x' format specifier and field width