Commit beeb175c authored by Alistair Francis's avatar Alistair Francis Committed by Markus Armbruster
Browse files

util/qemu-error: Rename error_print_loc() to be more generic



Rename the error_print_loc() function in preparation for using it to
print warnings as well.

Signed-off-by: default avatarAlistair Francis <alistair.francis@xilinx.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
Message-Id: <661b215695db878a0aef8401b506fb3da50e981a.1499866456.git.alistair.francis@xilinx.com>
Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
parent e79ea67a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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");
}