diff options
author | mike <mike@FreeBSD.org> | 2002-06-30 05:48:03 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-06-30 05:48:03 +0000 |
commit | beba9fcf0e2bbd5f85bff054621372bba537276c (patch) | |
tree | 82d8ba28cde601c15d295ff5a1cf301691e91165 /sys/powerpc/include/_inttypes.h | |
parent | 0ceea170997c0e61cf90fa58ba658fc0af71cbd2 (diff) | |
download | FreeBSD-src-beba9fcf0e2bbd5f85bff054621372bba537276c.zip FreeBSD-src-beba9fcf0e2bbd5f85bff054621372bba537276c.tar.gz |
Since printf(3) now supports the `j' conversion specifier, use that
when printing intmax_t and uintmax_t.
Forgotten by: mike
Noticed by: bde
Diffstat (limited to 'sys/powerpc/include/_inttypes.h')
-rw-r--r-- | sys/powerpc/include/_inttypes.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sys/powerpc/include/_inttypes.h b/sys/powerpc/include/_inttypes.h index e02a4a5..7da589d 100644 --- a/sys/powerpc/include/_inttypes.h +++ b/sys/powerpc/include/_inttypes.h @@ -58,7 +58,7 @@ #define PRIdFAST16 "d" /* int_fast16_t */ #define PRIdFAST32 "d" /* int_fast32_t */ #define PRIdFAST64 "lld" /* int_fast64_t */ -#define PRIdMAX "lld" /* intmax_t */ +#define PRIdMAX "jd" /* intmax_t */ #define PRIdPTR "d" /* intptr_t */ #define PRIi8 "i" /* int8_t */ @@ -73,7 +73,7 @@ #define PRIiFAST16 "i" /* int_fast16_t */ #define PRIiFAST32 "i" /* int_fast32_t */ #define PRIiFAST64 "lli" /* int_fast64_t */ -#define PRIiMAX "lli" /* intmax_t */ +#define PRIiMAX "ji" /* intmax_t */ #define PRIiPTR "i" /* intptr_t */ /* fprintf(3) macros for unsigned integers. */ @@ -90,7 +90,7 @@ #define PRIoFAST16 "o" /* uint_fast16_t */ #define PRIoFAST32 "o" /* uint_fast32_t */ #define PRIoFAST64 "llo" /* uint_fast64_t */ -#define PRIoMAX "llo" /* uintmax_t */ +#define PRIoMAX "jo" /* uintmax_t */ #define PRIoPTR "o" /* uintptr_t */ #define PRIu8 "u" /* uint8_t */ @@ -105,7 +105,7 @@ #define PRIuFAST16 "u" /* uint_fast16_t */ #define PRIuFAST32 "u" /* uint_fast32_t */ #define PRIuFAST64 "llu" /* uint_fast64_t */ -#define PRIuMAX "llu" /* uintmax_t */ +#define PRIuMAX "ju" /* uintmax_t */ #define PRIuPTR "u" /* uintptr_t */ #define PRIx8 "x" /* uint8_t */ @@ -120,7 +120,7 @@ #define PRIxFAST16 "x" /* uint_fast16_t */ #define PRIxFAST32 "x" /* uint_fast32_t */ #define PRIxFAST64 "llx" /* uint_fast64_t */ -#define PRIxMAX "llx" /* uintmax_t */ +#define PRIxMAX "jx" /* uintmax_t */ #define PRIxPTR "x" /* uintptr_t */ #define PRIX8 "X" /* uint8_t */ @@ -135,7 +135,7 @@ #define PRIXFAST16 "X" /* uint_fast16_t */ #define PRIXFAST32 "X" /* uint_fast32_t */ #define PRIXFAST64 "llX" /* uint_fast64_t */ -#define PRIXMAX "llX" /* uintmax_t */ +#define PRIXMAX "jX" /* uintmax_t */ #define PRIXPTR "X" /* uintptr_t */ /* fscanf(3) macros for signed integers. */ @@ -152,7 +152,7 @@ #define SCNdFAST16 "d" /* int_fast16_t */ #define SCNdFAST32 "d" /* int_fast32_t */ #define SCNdFAST64 "lld" /* int_fast64_t */ -#define SCNdMAX "lld" /* intmax_t */ +#define SCNdMAX "jd" /* intmax_t */ #define SCNdPTR "d" /* intptr_t */ #define SCNi8 "hhi" /* int8_t */ @@ -167,7 +167,7 @@ #define SCNiFAST16 "i" /* int_fast16_t */ #define SCNiFAST32 "i" /* int_fast32_t */ #define SCNiFAST64 "lli" /* int_fast64_t */ -#define SCNiMAX "lli" /* intmax_t */ +#define SCNiMAX "ji" /* intmax_t */ #define SCNiPTR "i" /* intptr_t */ /* fscanf(3) macros for unsigned integers. */ @@ -184,7 +184,7 @@ #define SCNoFAST16 "o" /* uint_fast16_t */ #define SCNoFAST32 "o" /* uint_fast32_t */ #define SCNoFAST64 "llo" /* uint_fast64_t */ -#define SCNoMAX "llo" /* uintmax_t */ +#define SCNoMAX "jo" /* uintmax_t */ #define SCNoPTR "o" /* uintptr_t */ #define SCNu8 "hhu" /* uint8_t */ @@ -199,7 +199,7 @@ #define SCNuFAST16 "u" /* uint_fast16_t */ #define SCNuFAST32 "u" /* uint_fast32_t */ #define SCNuFAST64 "llu" /* uint_fast64_t */ -#define SCNuMAX "llu" /* uintmax_t */ +#define SCNuMAX "ju" /* uintmax_t */ #define SCNuPTR "u" /* uintptr_t */ #define SCNx8 "hhx" /* uint8_t */ @@ -214,7 +214,7 @@ #define SCNxFAST16 "x" /* uint_fast16_t */ #define SCNxFAST32 "x" /* uint_fast32_t */ #define SCNxFAST64 "llx" /* uint_fast64_t */ -#define SCNxMAX "llx" /* uintmax_t */ +#define SCNxMAX "jx" /* uintmax_t */ #define SCNxPTR "x" /* uintptr_t */ #endif /* !_MACHINE_INTTYPES_H_ */ |