diff options
-rw-r--r-- | common/inotify_helpers.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/inotify_helpers.c b/common/inotify_helpers.c index 1b4b930..a875b8c 100644 --- a/common/inotify_helpers.c +++ b/common/inotify_helpers.c @@ -87,11 +87,11 @@ inotify_mask2str(uint32_t mask) { int inotify_print_event(struct inotify_event *event) { char *mask = inotify_mask2str(event->mask); - int ret = printf("wd:%d\n" - "\tmask:[%s]\n" - "\tcookie:%u\n" - "\tlen:%u\n" - "\tname:%s\n", + int ret = printf("{\t.wd=%d;\n" + "\t.mask=%s;\n" + "\t.cookie=%u;\n" + "\t.len=%u;\n" + "\t.name=\"%s\"; }\n", event->wd, mask, event->cookie, |