diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2018-07-09 12:05:12 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2018-07-09 12:05:12 +0000 |
commit | 07783b4f5b173dfc558ad9ee983a219d1d1d47e7 (patch) | |
tree | d38338384343fb9b90ef5b6bc56754492c0509f9 /usr.sbin/ldomctl | |
parent | 05f0f931ad684cb645ad517777a3d999636483c3 (diff) |
No need to mention which memory allocation entry point failed (malloc,
calloc or strdup), we just need to log that we ran out of memory in a
particular function.
Recommended by florian@ and deraadt@
ok benno@ henning@ tb@
Diffstat (limited to 'usr.sbin/ldomctl')
-rw-r--r-- | usr.sbin/ldomctl/parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldomctl/parse.y b/usr.sbin/ldomctl/parse.y index f986d83eef4..edcb0869e55 100644 --- a/usr.sbin/ldomctl/parse.y +++ b/usr.sbin/ldomctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.6 2014/11/20 05:51:20 jsg Exp $ */ +/* $OpenBSD: parse.y,v 1.7 2018/07/09 12:05:11 krw Exp $ */ /* * Copyright (c) 2012 Mark Kettenis <kettenis@openbsd.org> @@ -489,7 +489,7 @@ pushfile(const char *name) nfile = xzalloc(sizeof(struct file)); nfile->name = xstrdup(name); if ((nfile->stream = fopen(nfile->name, "r")) == NULL) { - warn("%s", nfile->name); + warn("%s: %s", __func__, nfile->name); free(nfile->name); free(nfile); return (NULL); |