cbfstool: Fix kv_pair on Windows
On Windows systems the archetype printf defaults to ms_printf instead of gnu_printf. Keep the archetype print for all non- Windows compiles to not break compatibility with other systems out there. Change-Id: Iad8441f4dc814366176646f6a7a5df653fda4c15 Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Signed-off-by: Scott Duplichan <scott@notabs.org> Reviewed-on: http://review.coreboot.org/10793 Tested-by: build bot (Jenkins)
This commit is contained in:
parent
5e4d53e12b
commit
19ba110c2d
|
@ -108,7 +108,11 @@ extern struct kv_pair *kv_pair_add_bool(struct kv_pair *kv_list,
|
||||||
*/
|
*/
|
||||||
extern struct kv_pair *kv_pair_fmt(struct kv_pair *kv_list,
|
extern struct kv_pair *kv_pair_fmt(struct kv_pair *kv_list,
|
||||||
const char *kv_key, const char *format, ...)
|
const char *kv_key, const char *format, ...)
|
||||||
|
#if defined(_WIN32) || (_WIN64)
|
||||||
|
__attribute__((format(gnu_printf, 3, 4)));
|
||||||
|
#else
|
||||||
__attribute__((format(printf, 3, 4)));
|
__attribute__((format(printf, 3, 4)));
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* kv_pair_free - clean a key=value pair list
|
* kv_pair_free - clean a key=value pair list
|
||||||
|
|
Loading…
Reference in New Issue