Parent Directory | Revision Log | Patch
revision 1.13 by roland, Tue May 28 23:57:10 2002 UTC | revision 1.14 by roland, Tue Jun 11 21:40:47 2002 UTC | |
---|---|---|
# | Line 245 diskfs_append_args (char **argz, size_t | Line 245 diskfs_append_args (char **argz, size_t |
245 | #define S(n, c) if ((lim & ((1 << n) - 1)) == 0) sfx = c, lim >>= n | #define S(n, c) if ((lim & ((1 << n) - 1)) == 0) sfx = c, lim >>= n |
246 | S (30, 'G'); else S (20, 'M'); else S (10, 'K'); else sfx = '\0'; | S (30, 'G'); else S (20, 'M'); else S (10, 'K'); else sfx = '\0'; |
247 | #undef S | #undef S |
248 | snprintf (buf, sizeof buf, "%ld%c", lim, sfx); | snprintf (buf, sizeof buf, "%Ld%c", lim, sfx); |
249 | err = argz_add (argz, argz_len, buf); | err = argz_add (argz, argz_len, buf); |
250 | } | } |
251 |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |