diff options
author | wangmy <wangmy@fujitsu.com> | 2022-10-11 16:05:58 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-10-26 12:28:38 +0100 |
commit | 3736b98be4a1c090e1cc7115311a02135be3c927 (patch) | |
tree | 15ffc548bc6cee81a8d5af771d1e27b9912f17b2 /meta/recipes-kernel/powertop | |
parent | a4d438833c96d9e87c037c8c4b20ab2fe9168cd5 (diff) | |
download | poky-3736b98be4a1c090e1cc7115311a02135be3c927.tar.gz |
powertop: upgrade 2.14 -> 2.15
0001-src-fix-compatibility-with-ncurses-6.3.patch
removed since it's included in new version.
(From OE-Core rev: da1bb4ac5d3643e0917eb40eb4829557fd63b5d8)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/powertop')
-rw-r--r-- | meta/recipes-kernel/powertop/powertop/0001-src-fix-compatibility-with-ncurses-6.3.patch | 52 | ||||
-rw-r--r-- | meta/recipes-kernel/powertop/powertop_2.15.bb (renamed from meta/recipes-kernel/powertop/powertop_2.14.bb) | 3 |
2 files changed, 1 insertions, 54 deletions
diff --git a/meta/recipes-kernel/powertop/powertop/0001-src-fix-compatibility-with-ncurses-6.3.patch b/meta/recipes-kernel/powertop/powertop/0001-src-fix-compatibility-with-ncurses-6.3.patch deleted file mode 100644 index 84b05ac971..0000000000 --- a/meta/recipes-kernel/powertop/powertop/0001-src-fix-compatibility-with-ncurses-6.3.patch +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | From 76d3f0851520bc8488e432f423941f1e72cc7405 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Mon, 25 Oct 2021 17:47:23 +0200 | ||
4 | Subject: [PATCH] src: fix compatibility with ncurses 6.3 | ||
5 | |||
6 | Upstream-Status: Submitted [https://github.com/fenrus75/powertop/pull/92] | ||
7 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
8 | --- | ||
9 | src/devices/devfreq.cpp | 2 +- | ||
10 | src/display.cpp | 2 +- | ||
11 | src/lib.cpp | 2 +- | ||
12 | 3 files changed, 3 insertions(+), 3 deletions(-) | ||
13 | |||
14 | diff --git a/src/devices/devfreq.cpp b/src/devices/devfreq.cpp | ||
15 | index 0509d0f..b194ac4 100644 | ||
16 | --- a/src/devices/devfreq.cpp | ||
17 | +++ b/src/devices/devfreq.cpp | ||
18 | @@ -297,7 +297,7 @@ void display_devfreq_devices(void) | ||
19 | df->fill_freq_utilization(j, buf); | ||
20 | strcat(fline, buf); | ||
21 | strcat(fline, "\n"); | ||
22 | - wprintw(win, fline); | ||
23 | + wprintw(win, "%s", fline); | ||
24 | } | ||
25 | wprintw(win, "\n"); | ||
26 | } | ||
27 | diff --git a/src/display.cpp b/src/display.cpp | ||
28 | index 7131144..cc03919 100644 | ||
29 | --- a/src/display.cpp | ||
30 | +++ b/src/display.cpp | ||
31 | @@ -125,7 +125,7 @@ void show_tab(unsigned int tab) | ||
32 | |||
33 | c = bottom_lines[tab_names[tab]].c_str(); | ||
34 | if (c && strlen(c) > 0) | ||
35 | - mvwprintw(bottom_line, 0,0, c); | ||
36 | + mvwprintw(bottom_line, 0,0, "%s", c); | ||
37 | else | ||
38 | mvwprintw(bottom_line, 0, 0, | ||
39 | "<ESC> %s | <TAB> / <Shift + TAB> %s | ", _("Exit"), | ||
40 | diff --git a/src/lib.cpp b/src/lib.cpp | ||
41 | index 5e48f37..5cd1c4a 100644 | ||
42 | --- a/src/lib.cpp | ||
43 | +++ b/src/lib.cpp | ||
44 | @@ -583,7 +583,7 @@ void ui_notify_user_ncurses(const char *frmt, ...) | ||
45 | * buffer */ | ||
46 | vsnprintf(notify, UI_NOTIFY_BUFF_SZ - 1, frmt, list); | ||
47 | va_end(list); | ||
48 | - mvprintw(1, 0, notify); | ||
49 | + mvprintw(1, 0, "%s", notify); | ||
50 | attroff(COLOR_PAIR(1)); | ||
51 | } | ||
52 | |||
diff --git a/meta/recipes-kernel/powertop/powertop_2.14.bb b/meta/recipes-kernel/powertop/powertop_2.15.bb index a2f30040b5..0aae4c9397 100644 --- a/meta/recipes-kernel/powertop/powertop_2.14.bb +++ b/meta/recipes-kernel/powertop/powertop_2.15.bb | |||
@@ -8,9 +8,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e" | |||
8 | 8 | ||
9 | SRC_URI = "git://github.com/fenrus75/powertop;protocol=https;branch=master \ | 9 | SRC_URI = "git://github.com/fenrus75/powertop;protocol=https;branch=master \ |
10 | file://0001-wakeup_xxx.h-include-limits.h.patch \ | 10 | file://0001-wakeup_xxx.h-include-limits.h.patch \ |
11 | file://0001-src-fix-compatibility-with-ncurses-6.3.patch \ | ||
12 | " | 11 | " |
13 | SRCREV = "52f022f9bbe6e060fba11701d657a8d9762702ba" | 12 | SRCREV = "d51ad395436d4d1dcc3ca46e1519ffeb475bf651" |
14 | 13 | ||
15 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
16 | 15 | ||