mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
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: vkonyashkin <vkonyashkin@parallels.com> Acked-by: Andrew Vagin <avagin@parallels.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
02b2f197ed
commit
6678fbb334
@@ -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;
|
||||
|
Reference in New Issue
Block a user