From a8e259db663e6308d6d9fcfd8db95f84346f2c68 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 7 Sep 2023 18:52:11 +0000 Subject: [PATCH] Remove stray newline from err() call. err() does this itself, and includes strerror() too. Test: treehugger Change-Id: I0e844f9cc3992e80a302b2f3ca1084b165582a9b --- toolbox/getevent.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/toolbox/getevent.c b/toolbox/getevent.c index e2c77c37f..f65bb20b5 100644 --- a/toolbox/getevent.c +++ b/toolbox/getevent.c @@ -111,8 +111,7 @@ static int print_possible_events(int fd, int print_flags) break; bits_size = res + 16; bits = realloc(bits, bits_size * 2); - if(bits == NULL) - err(1, "failed to allocate buffer of size %d\n", (int)bits_size); + if (bits == NULL) err(1, "failed to allocate buffer of size %zd", bits_size); } res2 = 0; switch(i) {