summaryrefslogtreecommitdiffstats
path: root/src/util/iccfix.c
diff options
context:
space:
mode:
authorMichael Brown2012-04-10 20:38:54 +0200
committerMichael Brown2012-04-10 20:38:54 +0200
commit196751ce95fa6b6566a5b336193681fad3581fd1 (patch)
tree5f4c47b8b7099513f34f6219abccb437b8656cb9 /src/util/iccfix.c
parent[igbvf] Add i350 virtual function support (diff)
downloadipxe-196751ce95fa6b6566a5b336193681fad3581fd1.tar.gz
ipxe-196751ce95fa6b6566a5b336193681fad3581fd1.tar.xz
ipxe-196751ce95fa6b6566a5b336193681fad3581fd1.zip
[build] Enable warnings when building utilities
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/util/iccfix.c')
-rw-r--r--src/util/iccfix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/iccfix.c b/src/util/iccfix.c
index 8b555c54..528bf4b2 100644
--- a/src/util/iccfix.c
+++ b/src/util/iccfix.c
@@ -2,6 +2,7 @@
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
@@ -49,7 +50,7 @@ static int ICCFIX ( void *elf ) {
( align >= ICC_ALIGN_HACK_FACTOR ) ) {
new_align = ( align / ICC_ALIGN_HACK_FACTOR );
shdr->sh_addralign = new_align;
- dprintf ( "Section \"%s\": alignment %d->%d\n",
+ dprintf ( "Section \"%s\": alignment %ld->%ld\n",
name, align, new_align );
}
}