mirror of https://github.com/omar-polo/gmid.git
fmt
This commit is contained in:
parent
59c7ee13b4
commit
7700ab07d3
2
log.c
2
log.c
|
@ -131,7 +131,7 @@ vlog(int priority, struct client *c,
|
||||||
if (vasprintf(&fmted, fmt, ap) == -1)
|
if (vasprintf(&fmted, fmt, ap) == -1)
|
||||||
fatal("vasprintf: %s", strerror(errno));
|
fatal("vasprintf: %s", strerror(errno));
|
||||||
|
|
||||||
if (c == NULL)
|
if (c == NULL)
|
||||||
ec = asprintf(&s, "internal: %s", fmted);
|
ec = asprintf(&s, "internal: %s", fmted);
|
||||||
else
|
else
|
||||||
ec = asprintf(&s, "%s:%s %s", hbuf, sbuf, fmted);
|
ec = asprintf(&s, "%s:%s %s", hbuf, sbuf, fmted);
|
||||||
|
|
Loading…
Reference in New Issue