mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-25 12:04:47 +00:00
Small usability nits
This commit is contained in:
1 parent
e635d5f748
commit
84893ec582
5 files changed
+11
-11
No files matched your search
@@ -37,7 +37,7 @@ bool mg_log_prefix(int level, const char *file, int line, const char *fname) {
|
||||
char buf[41];
|
||||
size_t n;
|
||||
if (p == NULL) p = strrchr(file, '\\');
|
||||
n = mg_snprintf(buf, sizeof(buf), "%llx %d %s:%d:%s", mg_millis(), level,
|
||||
n = mg_snprintf(buf, sizeof(buf), "%-6llx %d %s:%d:%s", mg_millis(), level,
|
||||
p == NULL ? file : p + 1, line, fname);
|
||||
if (n > sizeof(buf) - 2) n = sizeof(buf) - 2;
|
||||
while (n < sizeof(buf)) buf[n++] = ' ';
|
||||
|
||||
Reference in new issue
Block a user