roken: socket test style fixes

Make error reporting in socket test programs consistent with other usages by
removing redundant newline, using strerror() and reporting error in
parentheses.
This commit is contained in:
Luke Howard
2020-08-31 16:02:09 +10:00
parent 351145309d
commit 0c0ac807c1
3 changed files with 4 additions and 4 deletions

View File

@@ -130,7 +130,7 @@ main(int argc, char **argv)
}
if (rk_SOCK_INIT())
errx(1, "Couldn't initialize sockets. Err=%d\n", rk_SOCK_ERRNO);
errx(1, "Failed to initialize sockets (%s)", strerror(rk_SOCK_ERRNO));
argc -= optidx;
argv += optidx;