|
|
@ -80,9 +80,7 @@ void sway_log_errno(log_importance_t verbosity, char* format, ...) {
|
|
|
|
va_end(args);
|
|
|
|
va_end(args);
|
|
|
|
|
|
|
|
|
|
|
|
fprintf(stderr, ": ");
|
|
|
|
fprintf(stderr, ": ");
|
|
|
|
char error[256];
|
|
|
|
fprintf(stderr, "%s", strerror(errno));
|
|
|
|
strerror_r(errno, error, sizeof(error));
|
|
|
|
|
|
|
|
fprintf(stderr, "%s", error);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (colored && isatty(STDERR_FILENO)) {
|
|
|
|
if (colored && isatty(STDERR_FILENO)) {
|
|
|
|
fprintf(stderr, "\x1B[0m");
|
|
|
|
fprintf(stderr, "\x1B[0m");
|
|
|
|