Date: Tue, 11 Dec 2012 13:03:33 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r244120 - stable/8/gnu/usr.bin/gdb/kgdb Message-ID: <201212111303.qBBD3XFO097351@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Tue Dec 11 13:03:33 2012 New Revision: 244120 URL: http://svnweb.freebsd.org/changeset/base/244120 Log: MFC r217749: Use string literal format strings to quiet clang warnings. Modified: stable/8/gnu/usr.bin/gdb/kgdb/main.c Directory Properties: stable/8/gnu/usr.bin/gdb/kgdb/ (props changed) Modified: stable/8/gnu/usr.bin/gdb/kgdb/main.c ============================================================================== --- stable/8/gnu/usr.bin/gdb/kgdb/main.c Tue Dec 11 12:58:27 2012 (r244119) +++ stable/8/gnu/usr.bin/gdb/kgdb/main.c Tue Dec 11 13:03:33 2012 (r244120) @@ -129,7 +129,7 @@ kernel_from_dumpnr(int nr) snprintf(path, sizeof(path), "%s/info.%d", crashdir, nr); info = fopen(path, "r"); if (info == NULL) { - warn(path); + warn("%s", path); return; } while (fgets(path, sizeof(path), info) != NULL) { @@ -408,7 +408,7 @@ main(int argc, char *argv[]) if (dumpnr >= 0) { snprintf(path, sizeof(path), "%s/vmcore.%d", crashdir, dumpnr); if (stat(path, &st) == -1) - err(1, path); + err(1, "%s", path); if (!S_ISREG(st.st_mode)) errx(1, "%s: not a regular file", path); vmcore = strdup(path);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212111303.qBBD3XFO097351>