use %ll_ instead of the less standard %q_

This commit is contained in:
lukem 2001-01-05 03:54:34 +00:00
parent 746adc63eb
commit bca417d8e4
3 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@ along with GNU Tar; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef lint
static char rcsid[] = "$Id: create.c,v 1.8 1999/09/05 23:34:40 hubertf Exp $";
static char rcsid[] = "$Id: create.c,v 1.9 2001/01/05 03:54:34 lukem Exp $";
#endif /* not lint */
/*
@ -581,7 +581,7 @@ dump_file (p, curdev, toplevel)
if (count < 0)
{
msg_perror ("read error at byte %ld, reading\
%qd bytes, in file %s", hstat.st_size - sizeleft, bufsize, p);
%lld bytes, in file %s", (long long)(hstat.st_size - sizeleft), bufsize, p);
goto padit;
}
sizeleft -= count;

View File

@ -18,7 +18,7 @@ along with GNU Tar; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef lint
static char rcsid[] = "$Id: gnu.c,v 1.5 1999/08/24 18:40:10 bad Exp $";
static char rcsid[] = "$Id: gnu.c,v 1.6 2001/01/05 03:54:35 lukem Exp $";
#endif /* not lint */
#include <stdio.h>
@ -585,7 +585,7 @@ gnu_restore (skipcrud)
archive_dir = (char *) ck_malloc ((size_t)hstat.st_size);
if (archive_dir == 0)
{
msg ("Can't allocate %qd bytes for restore", hstat.st_size);
msg ("Can't allocate %lld bytes for restore", (long long)hstat.st_size);
skip_file ((long) hstat.st_size);
return;
}

View File

@ -18,7 +18,7 @@ along with GNU Tar; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef lint
static char rcsid[] = "$Id: update.c,v 1.4 1994/03/27 09:27:38 cgd Exp $";
static char rcsid[] = "$Id: update.c,v 1.5 2001/01/05 03:54:35 lukem Exp $";
#endif /* not lint */
/* JF implement the 'r' 'u' and 'A' options for tar. */
@ -229,7 +229,7 @@ append_file (p)
count = read (fd, start->charptr, bufsiz);
if (count < 0)
{
msg_perror ("read error at byte %qd reading %d bytes in file %s", statbuf.st_size - bytes_left, bufsiz, p);
msg_perror ("read error at byte %lld reading %d bytes in file %s", (long long)(statbuf.st_size - bytes_left), bufsiz, p);
exit (EX_ARGSBAD); /* FOO */
}
bytes_left -= count;