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: NLluís Vilanova <vilanova@ac.upc.edu> Signed-off-by: NAlexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
Showing
想要评论请 注册 或 登录