Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 442912 Details for
Bug 590932
app-portage/portage-utils: make_human_readable_str uses non-standard %Lu
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch which fixes the issue for me
portage-utils-0.6.3-use-ll-instead-of-L.patch (text/plain), 849 bytes, created by
S. Gilles
on 2016-08-10 12:16:40 UTC
(
hide
)
Description:
Patch which fixes the issue for me
Filename:
MIME Type:
Creator:
S. Gilles
Created:
2016-08-10 12:16:40 UTC
Size:
849 bytes
patch
obsolete
>diff --git a/libq/human_readable.c b/libq/human_readable.c >index 3a8aa34..70c45c6 100644 >--- a/libq/human_readable.c >+++ b/libq/human_readable.c >@@ -38,8 +38,8 @@ const char *make_human_readable_str(unsigned long long size, > { > /* The code will adjust for additional (appended) units. */ > static const char zero_and_units[] = { '0', 0, 'k', 'M', 'G', 'T' }; >- static const char fmt[] = "%'Lu"; >- static const char fmt_tenths[] = "%'Lu%s%d%c"; >+ static const char fmt[] = "%'llu"; >+ static const char fmt_tenths[] = "%'llu%s%d%c"; > > static char str[21]; /* Sufficient for 64 bit unsigned integers. */ > >@@ -78,7 +78,7 @@ const char *make_human_readable_str(unsigned long long size, > if (1) { /* no_tenths */ > if (frac >= 5) > ++val; >- f = "%Lu%*c"; /* fmt_no_tenths */ >+ f = "%llu%*c"; /* fmt_no_tenths */ > frac = 1; > } > #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 590932
: 442912