summaryrefslogtreecommitdiff
path: root/flash_otp_info.c
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@gmail.com>2006-10-09 20:49:57 -0500
committerJosh Boyer <jwboyer@gmail.com>2006-10-09 20:49:57 -0500
commit37f40f5574e04ae050507133ade8fe0e6bae2f0d (patch)
treec1100ad9ef33d3d7097a00459e0e3de03d2a3b75 /flash_otp_info.c
parent6041c88699b0b81a9cdc48a93e96629d99966137 (diff)
Fixup whitespace
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
Diffstat (limited to 'flash_otp_info.c')
-rw-r--r--flash_otp_info.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/flash_otp_info.c b/flash_otp_info.c
index 3292da7..c9486ee 100644
--- a/flash_otp_info.c
+++ b/flash_otp_info.c
@@ -1,6 +1,6 @@
/*
* flash_otp_info.c -- print info about One-Time-Programm data
-*/
+ */
#include <stdio.h>
#include <unistd.h>
@@ -40,22 +40,22 @@ int main(int argc,char *argv[])
}
printf("Number of OTP %s blocks on %s: %d\n",
- argv[1][1] == 'f' ? "factory" : "user", argv[2], val);
+ argv[1][1] == 'f' ? "factory" : "user", argv[2], val);
if (val > 0) {
struct otp_info info[val];
ret = ioctl(fd, OTPGETREGIONINFO, &info);
- if (ret < 0) {
+ if (ret < 0) {
perror("OTPGETREGIONCOUNT");
return errno;
}
for (i = 0; i < val; i++)
printf("block %2d: offset = 0x%04x "
- "size = %2d bytes %s\n",
- i, info[i].start, info[i].length,
- info[i].locked ? "[locked]" : "[unlocked]");
+ "size = %2d bytes %s\n",
+ i, info[i].start, info[i].length,
+ info[i].locked ? "[locked]" : "[unlocked]");
}
close(fd);