if (total_option)
{
/* Print the summary, minding the column and line delimiters. */
- char buf1[INT_BUFSIZE_BOUND (uintmax_t)];
- char buf2[INT_BUFSIZE_BOUND (uintmax_t)];
- char buf3[INT_BUFSIZE_BOUND (uintmax_t)];
if (col_sep_len == 1)
{ /* Separate to handle NUL char. */
- printf ("%s%c%s%c%s%c%s%c",
- umaxtostr (total[0], buf1), *col_sep,
- umaxtostr (total[1], buf2), *col_sep,
- umaxtostr (total[2], buf3), *col_sep,
+ printf ("%ju%c%ju%c%ju%c%s%c",
+ total[0], *col_sep,
+ total[1], *col_sep,
+ total[2], *col_sep,
_("total"), delim);
}
else
{
- printf ("%s%s%s%s%s%s%s%c",
- umaxtostr (total[0], buf1), col_sep,
- umaxtostr (total[1], buf2), col_sep,
- umaxtostr (total[2], buf3), col_sep,
+ printf ("%ju%s%ju%s%ju%s%s%c",
+ total[0], col_sep,
+ total[1], col_sep,
+ total[2], col_sep,
_("total"), delim);
}
}
}
else if (header_mode == POSIX_MODE && columns[col]->field == SIZE_FIELD)
{
- char buf[INT_BUFSIZE_BOUND (uintmax_t)];
- char *num = umaxtostr (output_block_size, buf);
-
/* TRANSLATORS: this is the "1024-blocks" header in "df -P". */
- cell = xasprintf (_("%s-%s"), num, header);
+ cell = xasprintf (_("%ju-%s"), output_block_size, header);
}
else
cell = xstrdup (header);
if (f->stat_ok
&& (S_ISCHR (f->stat.st_mode) || S_ISBLK (f->stat.st_mode)))
{
- char majorbuf[INT_BUFSIZE_BOUND (uintmax_t)];
- char minorbuf[INT_BUFSIZE_BOUND (uintmax_t)];
int blanks_width = (file_size_width
- (major_device_number_width + 2
+ minor_device_number_width));
- p += sprintf (p, "%*s, %*s ",
+ p += sprintf (p, "%*ju, %*ju ",
major_device_number_width + MAX (0, blanks_width),
- umaxtostr (major (f->stat.st_rdev), majorbuf),
+ (uintmax_t) major (f->stat.st_rdev),
minor_device_number_width,
- umaxtostr (minor (f->stat.st_rdev), minorbuf));
+ (uintmax_t) minor (f->stat.st_rdev));
}
else
{
struct line const *disorder_line = line - 1;
uintmax_t disorder_line_number =
buffer_linelim (&buf) - disorder_line + line_number;
- char hr_buf[INT_BUFSIZE_BOUND (disorder_line_number)];
- fprintf (stderr, _("%s: %s:%s: disorder: "),
- program_name, file_name,
- umaxtostr (disorder_line_number, hr_buf));
+ fprintf (stderr, _("%s: %s:%ju: disorder: "),
+ program_name, file_name, disorder_line_number);
write_line (disorder_line, stderr, _("standard error"));
}