tools/xenstore: Check the format printf for xprintf() and barf{,_perror}()
authorJulien Grall <jgrall@amazon.com>
Fri, 5 Mar 2021 12:40:03 +0000 (12:40 +0000)
committerJulien Grall <jgrall@amazon.com>
Thu, 11 Mar 2021 09:47:02 +0000 (09:47 +0000)
commit1fff444679a1ffa67d0bf55744b80555ab58f9f8
tree2170850d1efe75fde6d57d95eebbb5e1765925b4
parent209b309e33ebbf8674a9d84fd73cce7f1e70e7eb
tools/xenstore: Check the format printf for xprintf() and barf{,_perror}()

Allow GCC to analyze the format printf for xprintf() and
barf{,_perror}().

Take the opportunity to define __noreturn to make the prototype for
barf{,_perror})() easier to read.

Also document why 'extern' is used for xprintf().

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Ian Jackson <iwj@xenproject.org>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
tools/xenstore/utils.h