diff options
author | ru <ru@FreeBSD.org> | 2003-03-15 07:56:59 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2003-03-15 07:56:59 +0000 |
commit | 6999b653407d94906ec2d9b0e12f6fbdda2161a8 (patch) | |
tree | 52ec3e7bc937c469ca3f397191ca6c2929cd0b4f /sbin | |
parent | 71e2d62a49b558881aa09378c949a5848c20448e (diff) | |
download | FreeBSD-src-6999b653407d94906ec2d9b0e12f6fbdda2161a8.zip FreeBSD-src-6999b653407d94906ec2d9b0e12f6fbdda2161a8.tar.gz |
Fixed (soon might be fatal) -Wformat warnings.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/camcontrol/modeedit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/camcontrol/modeedit.c b/sbin/camcontrol/modeedit.c index 7aeac58..c8dd20a 100644 --- a/sbin/camcontrol/modeedit.c +++ b/sbin/camcontrol/modeedit.c @@ -470,7 +470,7 @@ load_format(char *pagedb_path, int page) } else if (depth == 0 && ! BUFFERFULL(str_pagenum)) { strncat(str_pagenum, &c, 1); } else if (depth == 0) { - errx(EX_OSFILE, "%s:%d: %s %d %s", pagedb_path, + errx(EX_OSFILE, "%s:%d: %s %zd %s", pagedb_path, lineno, "page identifier exceeds", sizeof(str_pagenum) - 1, "characters"); } @@ -486,7 +486,7 @@ load_format(char *pagedb_path, int page) } else if (! BUFFERFULL(str_pagename)) { strncat(str_pagename, &c, 1); } else { - errx(EX_OSFILE, "%s:%d: %s %d %s", pagedb_path, + errx(EX_OSFILE, "%s:%d: %s %zd %s", pagedb_path, lineno, "page name exceeds", sizeof(str_pagenum) - 1, "characters"); } @@ -503,7 +503,7 @@ load_format(char *pagedb_path, int page) } else if (! BUFFERFULL(format)) { strncat(format, &c, 1); } else { - errx(EX_OSFILE, "%s:%d: %s %d %s", pagedb_path, + errx(EX_OSFILE, "%s:%d: %s %zd %s", pagedb_path, lineno, "page definition exceeds", sizeof(format) - 1, "characters"); } |