diff options
author | Rosen Penev <rosenp@gmail.com> | 2022-03-20 21:21:52 -0700 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2022-03-22 00:51:56 -0700 |
commit | 32241d76d8e4d72400ce667e497288e50e458f6a (patch) | |
tree | 7832ad6a8d125b147baa8ddf6ed9a8ed33a88c66 /utils/powertop/patches/010-ncurses63.patch | |
parent | 2819935d991c3eda5b3d157f6d59c7cf8b9b5d1d (diff) |
powertop: update to 2.14
Upstream switched to github.
Fix license information.
Backport patch for ncurses 6.3. Remove other backported patches.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'utils/powertop/patches/010-ncurses63.patch')
-rw-r--r-- | utils/powertop/patches/010-ncurses63.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/utils/powertop/patches/010-ncurses63.patch b/utils/powertop/patches/010-ncurses63.patch new file mode 100644 index 000000000..53f9ff707 --- /dev/null +++ b/utils/powertop/patches/010-ncurses63.patch @@ -0,0 +1,45 @@ +From 9ef1559a1582f23d599c149601c3a8e06809296c Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <alex@linutronix.de> +Date: Mon, 25 Oct 2021 17:47:23 +0200 +Subject: [PATCH] src: fix compatibility with ncurses 6.3 + +Signed-off-by: Alexander Kanavin <alex@linutronix.de> +--- + src/devices/devfreq.cpp | 2 +- + src/display.cpp | 2 +- + src/lib.cpp | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +--- a/src/devices/devfreq.cpp ++++ b/src/devices/devfreq.cpp +@@ -297,7 +297,7 @@ void display_devfreq_devices(void) + df->fill_freq_utilization(j, buf); + strcat(fline, buf); + strcat(fline, "\n"); +- wprintw(win, fline); ++ wprintw(win, "%s", fline); + } + wprintw(win, "\n"); + } +--- a/src/display.cpp ++++ b/src/display.cpp +@@ -125,7 +125,7 @@ void show_tab(unsigned int tab) + + c = bottom_lines[tab_names[tab]].c_str(); + if (c && strlen(c) > 0) +- mvwprintw(bottom_line, 0,0, c); ++ mvwprintw(bottom_line, 0,0, "%s", c); + else + mvwprintw(bottom_line, 0, 0, + "<ESC> %s | <TAB> / <Shift + TAB> %s | ", _("Exit"), +--- a/src/lib.cpp ++++ b/src/lib.cpp +@@ -583,7 +583,7 @@ void ui_notify_user_ncurses(const char * + * buffer */ + vsnprintf(notify, UI_NOTIFY_BUFF_SZ - 1, frmt, list); + va_end(list); +- mvprintw(1, 0, notify); ++ mvprintw(1, 0, "%s", notify); + attroff(COLOR_PAIR(1)); + } + |