diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-16 16:57:00 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-16 16:57:00 +1100 |
commit | 56bc1890b229072513788992d1d29b6f173c13de (patch) | |
tree | 20e81d08b66f7ce122a7d5b2cf49e3b495eac1ed /hdata | |
parent | 4834fced49c6c8ccbc7237588df5cfe7c4e7cdd7 (diff) | |
download | skiboot-56bc1890b229072513788992d1d29b6f173c13de.zip skiboot-56bc1890b229072513788992d1d29b6f173c13de.tar.gz skiboot-56bc1890b229072513788992d1d29b6f173c13de.tar.bz2 |
Enable -Werror for -Wformat
We create our own inttypes.h to get the correct printf formatting for
64bit numbers.
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r-- | hdata/iohub.c | 21 | ||||
-rw-r--r-- | hdata/vpd.c | 3 |
2 files changed, 13 insertions, 11 deletions
diff --git a/hdata/iohub.c b/hdata/iohub.c index 42b1faf..4fa256d 100644 --- a/hdata/iohub.c +++ b/hdata/iohub.c @@ -25,6 +25,7 @@ #include <p5ioc2.h> #include <p7ioc.h> #include <vpd.h> +#include <inttypes.h> #include "hdata.h" @@ -142,15 +143,15 @@ static struct dt_node *io_add_p5ioc2(const struct cechub_io_hub *hub, prlog(PR_DEBUG, " GX#%d BUID_Ext = 0x%x\n", be32_to_cpu(hub->gx_index), be32_to_cpu(hub->buid_ext)); - prlog(PR_DEBUG, " GX BAR 0 = 0x%016llx\n", + prlog(PR_DEBUG, " GX BAR 0 = 0x%016"PRIx64"\n", be64_to_cpu(hub->gx_ctrl_bar0)); - prlog(PR_DEBUG, " GX BAR 1 = 0x%016llx\n", + prlog(PR_DEBUG, " GX BAR 1 = 0x%016"PRIx64"\n", be64_to_cpu(hub->gx_ctrl_bar1)); - prlog(PR_DEBUG, " GX BAR 2 = 0x%016llx\n", + prlog(PR_DEBUG, " GX BAR 2 = 0x%016"PRIx64"\n", be64_to_cpu(hub->gx_ctrl_bar2)); - prlog(PR_DEBUG, " GX BAR 3 = 0x%016llx\n", + prlog(PR_DEBUG, " GX BAR 3 = 0x%016"PRIx64"\n", be64_to_cpu(hub->gx_ctrl_bar3)); - prlog(PR_DEBUG, " GX BAR 4 = 0x%016llx\n", + prlog(PR_DEBUG, " GX BAR 4 = 0x%016"PRIx64"\n", be64_to_cpu(hub->gx_ctrl_bar4)); /* We assume SBAR == GX0 + some hard coded offset */ @@ -194,15 +195,15 @@ static struct dt_node *io_add_p7ioc(const struct cechub_io_hub *hub, prlog(PR_DEBUG, " GX#%d BUID_Ext = 0x%x\n", be32_to_cpu(hub->gx_index), be32_to_cpu(hub->buid_ext)); - prlog(PR_DEBUG, " GX BAR 0 = 0x%016llx\n", + prlog(PR_DEBUG, " GX BAR 0 = 0x%016"PRIx64"\n", be64_to_cpu(hub->gx_ctrl_bar0)); - prlog(PR_DEBUG, " GX BAR 1 = 0x%016llx\n", + prlog(PR_DEBUG, " GX BAR 1 = 0x%016"PRIx64"\n", be64_to_cpu(hub->gx_ctrl_bar1)); - prlog(PR_DEBUG, " GX BAR 2 = 0x%016llx\n", + prlog(PR_DEBUG, " GX BAR 2 = 0x%016"PRIx64"\n", be64_to_cpu(hub->gx_ctrl_bar2)); - prlog(PR_DEBUG, " GX BAR 3 = 0x%016llx\n", + prlog(PR_DEBUG, " GX BAR 3 = 0x%016"PRIx64"\n", be64_to_cpu(hub->gx_ctrl_bar3)); - prlog(PR_DEBUG, " GX BAR 4 = 0x%016llx\n", + prlog(PR_DEBUG, " GX BAR 4 = 0x%016"PRIx64"\n", be64_to_cpu(hub->gx_ctrl_bar4)); /* We only know about memory map 1 */ diff --git a/hdata/vpd.c b/hdata/vpd.c index b317027..d9ee77c 100644 --- a/hdata/vpd.c +++ b/hdata/vpd.c @@ -21,6 +21,7 @@ #include "hdata.h" #include <device.h> #include "hdata.h" +#include <inttypes.h> struct card_info { const char *ccin; /* Customer card identification number */ @@ -502,7 +503,7 @@ static struct dt_node *dt_create_vpd_node(struct dt_node *parent, addr = (uint64_t)be16_to_cpu(entry->rsrc_id); node = dt_new_addr(parent, name, addr); if (!node) { - prerror("VPD: Creating node at %s@%llx failed\n", name, addr); + prerror("VPD: Creating node at %s@%"PRIx64" failed\n", name, addr); return NULL; } |