aboutsummaryrefslogtreecommitdiff
path: root/hdata
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-11-16 16:57:00 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-01-21 15:24:50 +1100
commit3ee7ca100e2068d69b750d77568957efffe7178f (patch)
treef532f4c303261dbf2675a7b1f4ee59408ddec58f /hdata
parent5df1dcbd4acbdaeeaa923882867b02179dfb6bc7 (diff)
downloadskiboot-3ee7ca100e2068d69b750d77568957efffe7178f.zip
skiboot-3ee7ca100e2068d69b750d77568957efffe7178f.tar.gz
skiboot-3ee7ca100e2068d69b750d77568957efffe7178f.tar.bz2
Enable -Werror for -Wformat
commit 56bc1890b229072513788992d1d29b6f173c13de upstream 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.c21
-rw-r--r--hdata/vpd.c3
2 files changed, 13 insertions, 11 deletions
diff --git a/hdata/iohub.c b/hdata/iohub.c
index d189cb7..44ebded 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 585ed9c..754e5f6 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;
}