trace: Replace fprintf with error_report and print location
commita35d9be622a85d9ad6be5448e78c8a3f95ee5f00
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Mon, 2 Jun 2014 06:34:10 +0000 (2 16:34 +1000)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 9 Jun 2014 13:43:40 +0000 (9 15:43 +0200)
tree04aea446118dd2835451a3d7ed835c3ce523cead
parent5b808275f3bbe8cc95bb9301f4d5a41331d0e0e6
trace: Replace fprintf with error_report and print location

This replaces fprintf(stderr) with error_report.

This moves local variables to the beginning of the function to comply
with QEMU's coding style.

Suggested-by: LluĂ­s Vilanova <vilanova@ac.upc.edu>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
trace/control.c