SHA256
1
0
forked from pool/open-iscsi
open-iscsi/open-iscsi-print-ibft-error-to-stderr

25 lines
803 B
Plaintext

commit daa06c2b0c0351fda9a667dabed426f976e40226
Author: Hannes Reinecke <hare@suse.de>
Date: Fri Apr 4 13:43:25 2008 +0200
fwparam_ibft: print messages to stderr
When no iBFT was found a message would be printed to stdout,
confusing any parsing scripts.
Signed-off-by: Hannes Reinecke <hare@suse.de>
diff --git a/utils/fwparam_ibft/fwparam_ibft.c b/utils/fwparam_ibft/fwparam_ibft.c
index 3801028..dc0fc6b 100644
--- a/utils/fwparam_ibft/fwparam_ibft.c
+++ b/utils/fwparam_ibft/fwparam_ibft.c
@@ -612,7 +612,7 @@ fwparam_ibft(struct boot_context *context, const char *filepath)
if (ibft_loc)
ret = dump_ibft(ibft_loc, context);
else {
- printf("Could not find iBFT.\n");
+ fprintf(stderr, "Could not find iBFT.\n");
ret = -1;
}
munmap(filebuf, end_search);