Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Added an option to color out the ouput
[src/app-framework-binder.git]
/
src
/
afb-export.c
diff --git
a/src/afb-export.c
b/src/afb-export.c
index
fdd4573
..
fb1888e
100644
(file)
--- a/
src/afb-export.c
+++ b/
src/afb-export.c
@@
-274,7
+274,7
@@
static void vverbose_cb(struct afb_api_x3 *closure, int level, const char *file,
if (!fmt || vasprintf(&p, fmt, args) < 0)
vverbose(level, file, line, function, fmt, args);
else {
if (!fmt || vasprintf(&p, fmt, args) < 0)
vverbose(level, file, line, function, fmt, args);
else {
- verbose(level, file, line, function,
"[API %s] %s"
, export->api.apiname, p);
+ verbose(level, file, line, function,
(verbose_is_colorized() == 0 ? "[API %s] %s" : COLOR_API "[API %s]" COLOR_DEFAULT " %s")
, export->api.apiname, p);
free(p);
}
}
free(p);
}
}