confile_utils: cleanup new_hwaddr()

parent 28afad7e
......@@ -763,8 +763,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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment