mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-08 22:08:02 +00:00
log: Do not pad log string with a space.
This commit is contained in:
parent
f6f950273b
commit
3ade514b94
@ -86,7 +86,7 @@ void _applog(int prio, const char *str, bool force)
|
||||
|
||||
if (opt_log_show_date)
|
||||
{
|
||||
snprintf(datetime, sizeof(datetime), " [%d-%02d-%02d %02d:%02d:%02d] ",
|
||||
snprintf(datetime, sizeof(datetime), "[%d-%02d-%02d %02d:%02d:%02d] ",
|
||||
tm->tm_year + 1900,
|
||||
tm->tm_mon + 1,
|
||||
tm->tm_mday,
|
||||
@ -96,7 +96,7 @@ void _applog(int prio, const char *str, bool force)
|
||||
}
|
||||
else
|
||||
{
|
||||
snprintf(datetime, sizeof(datetime), " [%02d:%02d:%02d] ",
|
||||
snprintf(datetime, sizeof(datetime), "[%02d:%02d:%02d] ",
|
||||
tm->tm_hour,
|
||||
tm->tm_min,
|
||||
tm->tm_sec);
|
||||
|
Loading…
Reference in New Issue
Block a user