Skip to content

Commit f0c87d4

Browse files
committed
small tweak to comments in log file
1 parent cecb695 commit f0c87d4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

include/spblas/backend/log.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,20 @@ static void spblas_log_(int level, const char* pref, const char* file,
7070
printf("\x1b[38;5;0m"); // foreground is black
7171
}
7272

73-
// printf("[%s] %s:%d: %s()", pref, file, line, func); // print out
74-
// preamble: [logtype] file:<line#>: functionname() message
73+
// print out preamble: [logtype] file:<line#>: functionname() message
74+
// printf("[%s] %s:%d: %s()", pref, file, line, func);
75+
76+
// print out preamble: [logtype] file:<line#>: message
7577
printf("[%s] %s:%d: ", pref, file, line);
76-
// print out preamble: [logtype] file:<line#>: message
78+
7779
vprintf(fmt, args); // print out message
7880

7981
// end color for log printing
8082
if (isatty(1)) {
8183
printf("\x1b[0m");
8284
}
8385
printf("\n");
84-
}
86+
} // if level <= LOG_LEVEL
8587
fflush(0);
8688
va_end(args);
8789
}

0 commit comments

Comments
 (0)