summaryrefslogtreecommitdiff
path: root/extra/touchpad_updater/touchpad_updater.c
diff options
context:
space:
mode:
authorAdrian Ratiu <adrian.ratiu@collabora.corp-partner.google.com>2021-02-16 23:12:39 +0200
committerCommit Bot <commit-bot@chromium.org>2021-09-08 21:39:33 +0000
commit29a2e85a526e42606176fe04d369362b78a1db2a (patch)
tree2dfac7c958ecbcff9faf87c70a9baac52b04cf0a /extra/touchpad_updater/touchpad_updater.c
parente29c2299d9b09815d973cc5f289ecb4a0cd4a770 (diff)
downloadchrome-ec-29a2e85a526e42606176fe04d369362b78a1db2a.tar.gz
extra/util: replace deprecated sys_siglist with strsignal
Starting with Glibc 2.32: * The deprecated arrays sys_siglist, _sys_siglist, and sys_sigabbrev are no longer available to newly linked binaries, and their declarations have been removed from <string.h>. They are exported solely as compatibility symbols to support old binaries. All programs should use strsignal instead. https://sourceware.org/pipermail/libc-announce/2020/000029.html BUG=chromium:1171287 BRANCH=none TEST=Local builds on x86_64 / eve and arm / kevin. Sent SIGINT to iteflash and verified output. Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.corp-partner.google.com> Change-Id: I8b4deaf8743c806a9610863648b345be3b35e1b5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2698188 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org> Commit-Queue: Manoj Gupta <manojgupta@chromium.org> Tested-by: Manoj Gupta <manojgupta@chromium.org> (cherry picked from commit 733952136ee500b545fbac222bb1c63a1cf0a229) Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3128742
Diffstat (limited to 'extra/touchpad_updater/touchpad_updater.c')
-rw-r--r--extra/touchpad_updater/touchpad_updater.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/touchpad_updater/touchpad_updater.c b/extra/touchpad_updater/touchpad_updater.c
index d09b899a8d..0bcd0fc70a 100644
--- a/extra/touchpad_updater/touchpad_updater.c
+++ b/extra/touchpad_updater/touchpad_updater.c
@@ -181,7 +181,7 @@ static void request_exit(const char *format, ...)
static void sighandler(int signum)
{
- request_exit("caught signal %d: %s\n", signum, sys_siglist[signum]);
+ request_exit("caught signal %d: %s\n", signum, strsignal(signum));
}
static int find_interface_with_endpoint(int want_ep_num)