File xen.2b50cdbc444c637575580dcfa6c9525a84d5cc62.patch of Package xen

From: Christopher Clark <christopher.w.clark@gmail.com>
Date: Wed, 18 Jul 2018 15:22:17 -0700
Subject: 2b50cdbc444c637575580dcfa6c9525a84d5cc62

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.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
---
 tools/xenstat/xentop/xentop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/tools/xenstat/xentop/xentop.c
+++ b/tools/xenstat/xentop/xentop.c
@@ -292,25 +292,25 @@ static int lines(void)
 	return y;
 }
 
 /* printf-style print function which calls printw, but only if the cursor is
  * not on the last line. */
 static void print(const char *fmt, ...)
 {
 	va_list args;
 
 	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 {
 		va_start(args, fmt);
 		vprintf(fmt, args);
 		va_end(args);
 	}
 }
 
 static void xentop_attron(int attr)
 {
 	if (!batch)
openSUSE Build Service is sponsored by