summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-03-11 12:56:00 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-03-11 12:56:00 +0100
commite3f49e9e7f5e12fd9e0331d9e92cf0316507b82c (patch)
tree89bd25f0d13211e49c891b718b7670bfba5efd38
parent134e2cc87d524bbb63c2e73dc1bb1fd8c0449ae1 (diff)
downloadipecamera-e3f49e9e7f5e12fd9e0331d9e92cf0316507b82c.tar.gz
ipecamera-e3f49e9e7f5e12fd9e0331d9e92cf0316507b82c.tar.bz2
ipecamera-e3f49e9e7f5e12fd9e0331d9e92cf0316507b82c.tar.xz
ipecamera-e3f49e9e7f5e12fd9e0331d9e92cf0316507b82c.zip
Suppress warning
-rw-r--r--cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli.c b/cli.c
index 0bf6193..6301a01 100644
--- a/cli.c
+++ b/cli.c
@@ -452,7 +452,7 @@ int ReadRegisterRange(pcilib_t *handle, pcilib_model_t model, const char *bank,
}
if (i%numbers_per_line == 0) printf("%4lx: ", addr + i);
- printf("%0*lx", access * 2, buf[i]);
+ printf("%0*lx", access * 2, (unsigned long)buf[i]);
}
printf("\n\n");
}