tools/bootconfig: Fix errno reference after printf()
authorMasami Hiramatsu <mhiramat@kernel.org>
Thu, 19 Nov 2020 05:53:22 +0000 (14:53 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 19 Nov 2020 13:55:44 +0000 (08:55 -0500)
commita61ea6379ae9dbb63fbf022d1456733520db6be7
tree3157960939f7d86dc89a7208927e41e0e409d210
parent50b8a742850fce7293bed45753152c425f7e931b
tools/bootconfig: Fix errno reference after printf()

Fix not to refer the errno variable as the result of previous libc
functions after printf() because printf() can change the errno.

Link: https://lkml.kernel.org/r/160576520243.320071.51093664672431249.stgit@devnote2
Fixes: 85c46b78da58 ("bootconfig: Add bootconfig magic word for indicating bootconfig explicitly")
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/bootconfig/main.c