diff options
author | bde <bde@FreeBSD.org> | 1998-06-30 19:53:09 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-06-30 19:53:09 +0000 |
commit | 080e3ef296732cdd3339a502a9a7484cd8751f50 (patch) | |
tree | 111b065dcfb713494311f7e06bdcc0150edcccac | |
parent | dcbfd1f86ef9ec949d4cd635979107ae00e6e11c (diff) | |
download | FreeBSD-src-080e3ef296732cdd3339a502a9a7484cd8751f50.zip FreeBSD-src-080e3ef296732cdd3339a502a9a7484cd8751f50.tar.gz |
Fixed printf format errors.
-rw-r--r-- | contrib/cpio/copyin.c | 5 | ||||
-rw-r--r-- | contrib/gcc/config/i386/i386.c | 2 | ||||
-rw-r--r-- | contrib/gcc/config/i386/i386.h | 7 | ||||
-rw-r--r-- | contrib/gcc/dwarfout.c | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/contrib/cpio/copyin.c b/contrib/cpio/copyin.c index 6f2db39..5b71c05 100644 --- a/contrib/cpio/copyin.c +++ b/contrib/cpio/copyin.c @@ -1075,7 +1075,7 @@ long_format (file_hdr, link_name) } tbuf[16] = '\0'; - printf ("%s %3u ", mbuf, file_hdr->c_nlink); + printf ("%s %3lu ", mbuf, file_hdr->c_nlink); #ifndef __MSDOS__ if (numeric_uid) @@ -1089,8 +1089,7 @@ long_format (file_hdr, link_name) if ((file_hdr->c_mode & CP_IFMT) == CP_IFCHR || (file_hdr->c_mode & CP_IFMT) == CP_IFBLK) - printf ("%3u, %3u ", file_hdr->c_rdev_maj, - file_hdr->c_rdev_min); + printf ("%3lu, %3lu ", file_hdr->c_rdev_maj, file_hdr->c_rdev_min); else #endif printf ("%8lu ", file_hdr->c_filesize); diff --git a/contrib/gcc/config/i386/i386.c b/contrib/gcc/config/i386/i386.c index 09c6959..84ce297 100644 --- a/contrib/gcc/config/i386/i386.c +++ b/contrib/gcc/config/i386/i386.c @@ -2451,7 +2451,7 @@ print_operand (file, x, code) REAL_VALUE_FROM_CONST_DOUBLE (r, x); REAL_VALUE_TO_TARGET_SINGLE (r, l); PRINT_IMMED_PREFIX (file); - fprintf (file, "0x%x", l); + fprintf (file, "0x%lx", l); } /* These float cases don't actually occur as immediate operands. */ else if (GET_CODE (x) == CONST_DOUBLE && GET_MODE (x) == DFmode) diff --git a/contrib/gcc/config/i386/i386.h b/contrib/gcc/config/i386/i386.h index efc956a..8abcf87 100644 --- a/contrib/gcc/config/i386/i386.h +++ b/contrib/gcc/config/i386/i386.h @@ -1637,7 +1637,7 @@ number as al, and ax. do { long l[2]; \ REAL_VALUE_TO_TARGET_DOUBLE (VALUE, l); \ if (sizeof (int) == sizeof (long)) \ - fprintf (FILE, "%s 0x%x,0x%x\n", ASM_LONG, l[0], l[1]); \ + fprintf (FILE, "%s 0x%x,0x%x\n", ASM_LONG, (int) l[0], (int) l[1]); \ else \ fprintf (FILE, "%s 0x%lx,0x%lx\n", ASM_LONG, l[0], l[1]); \ } while (0) @@ -1649,7 +1649,8 @@ do { long l[2]; \ do { long l[3]; \ REAL_VALUE_TO_TARGET_LONG_DOUBLE (VALUE, l); \ if (sizeof (int) == sizeof (long)) \ - fprintf (FILE, "%s 0x%x,0x%x,0x%x\n", ASM_LONG, l[0], l[1], l[2]); \ + fprintf (FILE, "%s 0x%x,0x%x,0x%x\n", ASM_LONG, \ + (int) l[0], (int) l[1], (int) l[2]); \ else \ fprintf (FILE, "%s 0x%lx,0x%lx,0x%lx\n", ASM_LONG, l[0], l[1], l[2]); \ } while (0) @@ -1660,7 +1661,7 @@ do { long l[3]; \ do { long l; \ REAL_VALUE_TO_TARGET_SINGLE (VALUE, l); \ if (sizeof (int) == sizeof (long)) \ - fprintf ((FILE), "%s 0x%x\n", ASM_LONG, l); \ + fprintf ((FILE), "%s 0x%x\n", ASM_LONG, (int) l); \ else \ fprintf ((FILE), "%s 0x%lx\n", ASM_LONG, l); \ } while (0) diff --git a/contrib/gcc/dwarfout.c b/contrib/gcc/dwarfout.c index b484e5a..9a7d108 100644 --- a/contrib/gcc/dwarfout.c +++ b/contrib/gcc/dwarfout.c @@ -1095,7 +1095,7 @@ output_unsigned_leb128 (value) byte |= 0x80; fprintf (asm_out_file, "\t%s\t0x%x", ASM_BYTE_OP, (unsigned) byte); if (flag_verbose_asm && value == 0) - fprintf (asm_out_file, "\t%s ULEB128 number - value = %u", + fprintf (asm_out_file, "\t%s ULEB128 number - value = %lu", ASM_COMMENT_START, orig_value); fputc ('\n', asm_out_file); } @@ -1127,7 +1127,7 @@ output_signed_leb128 (value) } fprintf (asm_out_file, "\t%s\t0x%x", ASM_BYTE_OP, (unsigned) byte); if (flag_verbose_asm && more == 0) - fprintf (asm_out_file, "\t%s SLEB128 number - value = %d", + fprintf (asm_out_file, "\t%s SLEB128 number - value = %ld", ASM_COMMENT_START, orig_value); fputc ('\n', asm_out_file); } |