Date: Wed, 5 Mar 2014 04:15:17 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262775 - head/sbin/savecore Message-ID: <201403050415.s254FH89089511@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Wed Mar 5 04:15:17 2014 New Revision: 262775 URL: http://svnweb.freebsd.org/changeset/base/262775 Log: Log the name of the device that we failed to open rather than an uninitialized buffer. MFC after: 3 days Modified: head/sbin/savecore/savecore.c Modified: head/sbin/savecore/savecore.c ============================================================================== --- head/sbin/savecore/savecore.c Wed Mar 5 04:09:05 2014 (r262774) +++ head/sbin/savecore/savecore.c Wed Mar 5 04:15:17 2014 (r262775) @@ -618,7 +618,7 @@ DoFile(const char *savedir, const char * */ fdinfo = open(infoname, O_WRONLY | O_CREAT | O_TRUNC, 0600); if (fdinfo < 0) { - syslog(LOG_ERR, "%s: %m", buf); + syslog(LOG_ERR, "%s: %m", infoname); nerr++; goto closefd; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403050415.s254FH89089511>