aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2013-02-18 23:20:10 +0100
committerGravatar Steven Schubiger <stsc@refcnt.org> 2013-02-18 23:20:10 +0100
commitefd7a83e87d347f11bfe54e890e62794c97d8865 (patch)
treedf279d90b2d37c75b054935aa739b5d4fc9a229f
parentecd6ccdd0b9976787a82b8f63bccfedd1e74e5fb (diff)
downloadcolorize-efd7a83e87d347f11bfe54e890e62794c97d8865.tar.gz
colorize-efd7a83e87d347f11bfe54e890e62794c97d8865.tar.bz2
Adjust format specifier for unsigned integers
-rw-r--r--colorize.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/colorize.c b/colorize.c
index aa3695f..0272494 100644
--- a/colorize.c
+++ b/colorize.c
@@ -71,7 +71,7 @@
} while (false);
#define MEM_ALLOC_FAIL_DEBUG(file, line) do { \
- fprintf (stderr, "Memory allocation failure in source file %s, line %d\n", file, line); \
+ fprintf (stderr, "Memory allocation failure in source file %s, line %u\n", file, line); \
exit (2); \
} while (false);
#define MEM_ALLOC_FAIL() do { \
@@ -80,7 +80,7 @@
} while (false);
#define ABORT_TRACE() \
- fprintf (stderr, "Aborting in source file %s, line %d\n", __FILE__, __LINE__); \
+ fprintf (stderr, "Aborting in source file %s, line %u\n", __FILE__, __LINE__); \
abort (); \
#define CHECK_COLORS_RANDOM(color1, color2) \
@@ -142,7 +142,7 @@ static const char *formats[] = {
"%s", /* generic */
"%s color '%s' %s", /* color */
"%s color '%s' %s '%s'", /* random */
- "less than %d bytes %s", /* error */
+ "less than %u bytes %s", /* error */
"%s: %s", /* file */
};
@@ -335,7 +335,7 @@ print_version (void)
c_flags = "unknown";
#endif
printf ("Compiler flags: %s\n", c_flags);
- printf ("Buffer size: %d bytes\n", BUF_SIZE - 1);
+ printf ("Buffer size: %u bytes\n", BUF_SIZE - 1);
}
static void