Use PACKAGE_VERSION for POWERTOP_VERSION
Namhyung Kim
PATCH 1/1 Use PACKAGE_VERSION for POWERTOP_VERSION
It was missed to update POWERTOP_VERSION macro so that the new v2.2 release still shows v2.1 string on the header of ncurses window. Convert to use PACKAGE_VERSION macro which set by autotools to the AC_INIT version so that it cannot be missed anymore.
--- src/lib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
src/lib.h +2 -2
@@ -35,8 +35,8 @@#define _ (STRING ) gettext(STRING) -#define POWERTOP_VERSION "v2.1" -#define POWERTOP_SHORT_VERSION "2.1" +#define POWERTOP_VERSION "v"PACKAGE_VERSION +#define POWERTOP_SHORT_VERSION PACKAGE_VERSIONextern int get_max_cpu (void );
Signature · 1 line
1.7.9.2
Sergey Senozhatsky
Quoted 8 lines · Namhyung Kim
It was missed to update
POWERTOP_VERSIONmacro so that the new v2.2 release still shows v2.1 string on the header of ncurses window. Convert to usePACKAGE_VERSIONmacro which set by autotools to theAC_INITversion so that it cannot be missed anymore.Signed-off-by Namhyung Kim <namhyung(a)gmail.com>---
looks good to me, thanks.
-ss
Quoted 26 lines
src/lib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)src/lib.h +2
-2@@ -35,8 +35,8 @@#define _ (STRING ) gettext(STRING) -#define POWERTOP_VERSION "v2.1" -#define POWERTOP_SHORT_VERSION "2.1" +#define POWERTOP_VERSION "v"PACKAGE_VERSION +#define POWERTOP_SHORT_VERSION PACKAGE_VERSIONextern int get_max_cpu (void );Signature · 6 lines
1.7.9.2 _______________________________________________ PowerTop mailing list PowerTop(a)lists.01.org https://lists.01.org/mailman/listinfo/powertop
Chris Ferron
Quoted 16 lines · Namhyung Kim
It was missed to update
POWERTOP_VERSIONmacro so that the new v2.2 release still shows v2.1 string on the header of ncurses window. Convert to usePACKAGE_VERSIONmacro which set by autotools to theAC_INITversion so that it cannot be missed anymore.Signed-off-by Namhyung Kim <namhyung(a)gmail.com>--- src/lib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)src/lib.h +0
-0
src/lib.h line 42
Quoted 10 lines
src/lib.h +2
-2@@ -35,8 +35,8 @@#define _ (STRING ) gettext(STRING) -#define POWERTOP_VERSION "v2.1" -#define POWERTOP_SHORT_VERSION "2.1" +#define POWERTOP_VERSION "v"PACKAGE_VERSION +#define POWERTOP_SHORT_VERSION PACKAGE_VERSIONextern int get_max_cpu (void );
Your patch has been applied
-Chris