[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 1/7] util/qemu-error: Rename error_print_loc() to
From: |
Alistair Francis |
Subject: |
[Qemu-devel] [PATCH v4 1/7] util/qemu-error: Rename error_print_loc() to be more generic |
Date: |
Wed, 12 Jul 2017 06:57:31 -0700 |
Rename the error_print_loc() function in preparation for using it to
print warnings as well.
Signed-off-by: Alistair Francis <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Thomas Huth <address@hidden>
---
util/qemu-error.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/util/qemu-error.c b/util/qemu-error.c
index b331f8f4a4..1c5e35ecdb 100644
--- a/util/qemu-error.c
+++ b/util/qemu-error.c
@@ -146,7 +146,7 @@ const char *error_get_progname(void)
/*
* Print current location to current monitor if we have one, else to stderr.
*/
-static void error_print_loc(void)
+static void print_loc(void)
{
const char *sep = "";
int i;
@@ -197,7 +197,7 @@ void error_vreport(const char *fmt, va_list ap)
g_free(timestr);
}
- error_print_loc();
+ print_loc();
error_vprintf(fmt, ap);
error_printf("\n");
}
--
2.11.0
- [Qemu-devel] [PATCH v4 0/7] Implement a warning_report function, Alistair Francis, 2017/07/12
- [Qemu-devel] [PATCH v4 1/7] util/qemu-error: Rename error_print_loc() to be more generic,
Alistair Francis <=
- [Qemu-devel] [PATCH v4 2/7] error: Functions to report warnings and informational messages, Alistair Francis, 2017/07/12
- [Qemu-devel] [PATCH v4 4/7] hw/i386: Improve some of the warning messages, Alistair Francis, 2017/07/12
- [Qemu-devel] [PATCH v4 6/7] error: Implement the warn and free Error functions, Alistair Francis, 2017/07/12
- [Qemu-devel] [PATCH v4 5/7] char-socket: Report TCP socket waiting as information, Alistair Francis, 2017/07/12
- [Qemu-devel] [PATCH v4 3/7] Convert error_report() to warn_report(), Alistair Francis, 2017/07/12
- [Qemu-devel] [PATCH v4 7/7] Convert error_report*_err() to warn_report*_err(), Alistair Francis, 2017/07/12
- Re: [Qemu-devel] [PATCH v4 0/7] Implement a warning_report function, no-reply, 2017/07/12