tools/libs/ctrl: Save errno only once in *PRINTF() and *ERROR()
authorJuergen Gross <jgross@suse.com>
Thu, 9 Dec 2021 13:40:54 +0000 (14:40 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 9 Dec 2021 16:26:29 +0000 (16:26 +0000)
commitf10202d5c7c296c52a69775a4faab7db1b2e478d
treea6db875ccc3875ed456e4567b0aec2d250b6960f
parent1d896a0ef7df2bf4c74c3c5272e0d341038eea8b
tools/libs/ctrl: Save errno only once in *PRINTF() and *ERROR()

All *PRINTF() and *ERROR() macros are based on xc_reportv() which is
saving and restoring errno in order to not modify it. There is no need
to save and restore in those macros, too.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
tools/libs/ctrl/xc_private.h