tools/xentop : replace use of deprecated vwprintw
PATCH 1/1 tools/xentop : replace use of deprecated vwprintw
gcc-8.1 complains:
| xentop.c: In function 'print': | xentop.c:304:4: error: 'vwprintw' is deprecated [-Werror=deprecated-declarations] | vwprintw(stdscr, (curses_str_t)fmt, args); | ^~~~~~~~
vw_printw (note the underscore) is a non-deprecated alternative.
---
Please use my gmail address for any correspondence to me.
tools/xenstat/xentop/xentop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/xenstat/xentop/xentop.c +1 -1
@@ -301,7 +301,7 @@ static void print(const char *fmt, ...)if (!batch) {if ((current_row () <lines ()-1 )) {va_start (args, fmt); -vwprintw (stdscr, (curses_str_t )fmt, args); +vw_printw (stdscr, (curses_str_t )fmt, args);va_end (args); } }else {
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 10 lines · Christopher Clark
gcc-8.1 complains:
| xentop.c: In function 'print': | xentop.c:304:4: error: 'vwprintw' is deprecated [-Werror=deprecated-declarations] | vwprintw(stdscr, (curses_str_t)fmt, args); | ^~~~~~~~
vw_printw(note the underscore) is a non-deprecated alternative.Signed-off-by Christopher Clark <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Hi,
Quoted 8 lines · Wei Liu
Quoted 7 lines · Christopher Clark
gcc-8.1 complains:
| xentop.c: In function 'print': | xentop.c:304:4: error: 'vwprintw' is deprecated [-Werror=deprecated-declarations] | vwprintw(stdscr, (curses_str_t)fmt, args); | ^~~~~~~~
Quoted 5 lines
Quoted 3 lines
vw_printw(note the underscore) is a non-deprecated alternative.Signed-off-by Christopher Clark <[email protected]>Acked-by Wei Liu <[email protected]>
Would it be possible to put this into 4.11-stable? It seems the change is not that invasive and risky. :)
If so, I can drop a patch from the Debian packaging.
Thanks,
Hans
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 13 lines · Hans van Kranenburg
Hi,
Quoted 10 lines · Wei Liu
Quoted 9 lines · Christopher Clark
gcc-8.1 complains:
| xentop.c: In function 'print': | xentop.c:304:4: error: 'vwprintw' is deprecated [-Werror=deprecated-declarations] | vwprintw(stdscr, (curses_str_t)fmt, args); | ^~~~~~~~
vw_printw(note the underscore) is a non-deprecated alternative.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Christopher Clark <[email protected]>Acked-by Wei Liu <[email protected]>Would it be possible to put this into 4.11-stable? It seems the change is not that invasive and risky. :)
If so, I can drop a patch from the Debian packaging.
This one is for Ian to answer.
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 11 lines · Christopher Clark
gcc-8.1 complains:
| xentop.c: In function 'print': | xentop.c:304:4: error: 'vwprintw' is deprecated [-Werror=deprecated-declarations] | vwprintw(stdscr, (curses_str_t)fmt, args); | ^~~~~~~~
vw_printw(note the underscore) is a non-deprecated alternative.Signed-off-by Christopher Clark <[email protected]>
Jan,
This should probably be queued for backport.
-George
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 10 lines · George Dunlap
Quoted 8 lines · Christopher Clark
gcc-8.1 complains:
| xentop.c: In function 'print': | xentop.c:304:4: error: 'vwprintw' is deprecated [-Werror=deprecated-declarations] | vwprintw(stdscr, (curses_str_t)fmt, args); | ^~~~~~~~
Quoted 7 lines
Quoted 3 lines
vw_printw(note the underscore) is a non-deprecated alternative.Signed-off-by Christopher Clark <[email protected]>Jan,
This should probably be queued for backport.
ITYM Ian.
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel