mirror of
git://sigrok.org/libserialport
synced 2023-08-10 21:13:24 +03:00
Use "sp: " as prefix for debug logs (nicer/shorter).
This commit is contained in:
parent
c3e0509275
commit
dd7742fb15
@ -1914,7 +1914,7 @@ void sp_default_debug_handler(const char *format, ...)
|
|||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, format);
|
va_start(args, format);
|
||||||
if (getenv("LIBSERIALPORT_DEBUG")) {
|
if (getenv("LIBSERIALPORT_DEBUG")) {
|
||||||
fputs("libserialport: ", stderr);
|
fputs("sp: ", stderr);
|
||||||
vfprintf(stderr, format, args);
|
vfprintf(stderr, format, args);
|
||||||
}
|
}
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
Loading…
Reference in New Issue
Block a user