From: Christian Brauner Date: Wed, 9 Dec 2020 09:00:40 +0000 (+0100) Subject: confile_utils: cleanup new_hwaddr() X-Git-Tag: lxc-5.0.0~330^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6261b46306014a0f9fd7838da45e93e0d229805;p=thirdparty%2Flxc.git confile_utils: cleanup new_hwaddr() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile_utils.c b/src/lxc/confile_utils.c index 34ea92345..d98b5cd9c 100644 --- a/src/lxc/confile_utils.c +++ b/src/lxc/confile_utils.c @@ -778,8 +778,7 @@ bool new_hwaddr(char *hwaddr) rand() % 255, rand() % 255); #endif if (ret < 0 || ret >= 18) { - SYSERROR("Failed to call snprintf()"); - return false; + return log_error_errno(false, EIO, "Failed to call snprintf()"); } return true;