Commit 6678fbb3 authored by vkonyashkin's avatar vkonyashkin Committed by Pavel Emelyanov

zdtm/inotify_system_nodel.c: need to print mask of events for UNKNOWN event

Need to print a mask of events for UNKNOWN event in inotify_system_nodel.c
and inotify_system.c tests. The current error message in this case is too vague:
inotify_system_nodel.c:266: got unexpected event UNKNOWN
Signed-off-by: 's avatarvkonyashkin <vkonyashkin@parallels.com>
Acked-by: 's avatarAndrew Vagin <avagin@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 02b2f197
......@@ -262,8 +262,8 @@ int errors(int exp_len, int len, char *etalon_buf, char *buf) {
exp_event = (struct inotify_event *) &etalon_buf[marker];
else {
if (!harmless(event->mask)) {
fail("got unexpected event %s\n",
handle_event(event->mask));
fail("got unexpected event %s (%x mask)\n",
handle_event(event->mask), event->mask);
error++;
}
goto next_event;
......
......@@ -262,8 +262,8 @@ int errors(int exp_len, int len, char *etalon_buf, char *buf) {
exp_event = (struct inotify_event *) &etalon_buf[marker];
else {
if (!harmless(event->mask)) {
fail("got unexpected event %s\n",
handle_event(event->mask));
fail("got unexpected event %s (%x mask)\n",
handle_event(event->mask), event->mask);
error++;
}
goto next_event;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment