projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
On WIN32 output __LINE__ in place of empty __FUNCTION__.
[silc.git]
/
lib
/
silcutil
/
silclog.c
diff --git
a/lib/silcutil/silclog.c
b/lib/silcutil/silclog.c
index 4369830b6376c6690dc0e463d90e53beedc9ceba..914a5fdfaae803fa65931db263c55ac05d0fcfbd 100644
(file)
--- a/
lib/silcutil/silclog.c
+++ b/
lib/silcutil/silclog.c
@@
-458,6
+458,12
@@
void silc_log_output_debug(char *file, const char *function,
goto end;
}
+#ifdef SILC_WIN32
+ if (strrchr(function, '\\'))
+ fprintf(stderr, "%s:%d: %s\n", strrchr(function, '\\') + 1, line, string);
+ else
+#endif /* SILC_WIN32 */
+
fprintf(stderr, "%s:%d: %s\n", function, line, string);
fflush(stderr);