mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
slave: prefix user notifications with 'foot'
To make it clearer _who_ is emitting the warning/errors
This commit is contained in:
parent
ee9c76ded0
commit
7e1894978f
1 changed files with 3 additions and 1 deletions
4
slave.c
4
slave.c
|
|
@ -158,6 +158,7 @@ emit_one_notification(int fd, const struct user_notification *notif)
|
|||
xassert(prefix != NULL);
|
||||
|
||||
if (write(fd, prefix, strlen(prefix)) < 0 ||
|
||||
write(fd, "foot: ", 6) < 0 ||
|
||||
write(fd, notif->text, strlen(notif->text)) < 0 ||
|
||||
write(fd, postfix, strlen(postfix)) < 0)
|
||||
{
|
||||
|
|
@ -180,7 +181,8 @@ emit_one_notification(int fd, const struct user_notification *notif)
|
|||
}
|
||||
|
||||
static bool
|
||||
emit_notifications_of_kind(int fd, const user_notifications_t *notifications,
|
||||
emit_notifications_of_kind(int fd,
|
||||
const user_notifications_t *notifications,
|
||||
enum user_notification_kind kind)
|
||||
{
|
||||
tll_foreach(*notifications, it) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue