1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-29 08:08:37 +00:00

Fixed printf format errors.

This commit is contained in:
Bruce Evans 1998-06-30 19:53:09 +00:00
parent c557e6528b
commit c15a5b80be
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37312
4 changed files with 9 additions and 9 deletions

View File

@ -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);

View File

@ -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)

View File

@ -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)

View File

@ -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);
}