stubdom/vtpm: include stdio.h for declaration of printf
authorOlaf Hering <olaf@aepfle.de>
Wed, 2 Oct 2019 17:05:36 +0000 (19:05 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 14 Oct 2019 13:42:37 +0000 (14:42 +0100)
commit55ab292c42db41b05cfdba012680bf1e0ea02f7a
treed0f99e933701cdbb4276b1c3972576aa3a4c3f24
parente37058267e33e5e4525f920e3126d15891ee8dbb
stubdom/vtpm: include stdio.h for declaration of printf

The function read_vtpmblk uses printf(3), but stdio.h is not included
in this file. This results in a warning from gcc-7:

vtpmblk.c: In function 'read_vtpmblk':
vtpmblk.c:322:7: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
       printf("Expected: ");
vtpmblk.c:322:7: warning: incompatible implicit declaration of built-in function 'printf'
vtpmblk.c:322:7: note: include '<stdio.h>' or provide a declaration of 'printf'

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Release-acked-by: Juergen Gross <jgross@suse.com>
stubdom/vtpm/vtpmblk.c