summaryrefslogtreecommitdiffstats
path: root/testaddsel.cpp
diff options
context:
space:
mode:
authorNagaraju Goruganti <ngorugan@in.ibm.com>2018-04-16 05:25:21 -0500
committerVernon Mauery <vernon.mauery@linux.intel.com>2018-04-18 21:03:39 +0000
commit2fa0e702a482aa0fbec0c26f58ae1b7d8799b392 (patch)
tree487a6b46a0701e9990e2c0e1d4a14fcbbc6ababb /testaddsel.cpp
parenta30c8d3a7ced83129752379cf0ecc88909263381 (diff)
downloadphosphor-host-ipmid-2fa0e702a482aa0fbec0c26f58ae1b7d8799b392.tar.gz
phosphor-host-ipmid-2fa0e702a482aa0fbec0c26f58ae1b7d8799b392.zip
Replace tabs with 4 spaces
replaced tabs with four spaces. Change-Id: Ib36bf7956a280921c45a7944a972c0f19fe39e5c Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
Diffstat (limited to 'testaddsel.cpp')
-rw-r--r--testaddsel.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/testaddsel.cpp b/testaddsel.cpp
index 55cf07d..c3b317a 100644
--- a/testaddsel.cpp
+++ b/testaddsel.cpp
@@ -81,23 +81,23 @@ final:
int main(int argc, char *argv[])
{
- int base;
- char *endptr, *str;
- long val;
- uint16_t num;
- int r;
-
- if (argc < 2) {
- fprintf(stderr, "Usage: %s sensornumber\n", argv[0]);
- return -1;
- }
-
- str = argv[1];
- base = (argc > 2) ? atoi(argv[2]) : 10;
+ int base;
+ char *endptr, *str;
+ long val;
+ uint16_t num;
+ int r;
+
+ if (argc < 2) {
+ fprintf(stderr, "Usage: %s sensornumber\n", argv[0]);
+ return -1;
+ }
- val = strtol(str, &endptr, base);
+ str = argv[1];
+ base = (argc > 2) ? atoi(argv[2]) : 10;
- num = (uint16_t) val;
+ val = strtol(str, &endptr, base);
+
+ num = (uint16_t) val;
@@ -107,13 +107,13 @@ int main(int argc, char *argv[])
log<level::ERR>("Failed to connect to system bus",
entry("ERRNO=0x%X", -r));
goto finish;
- }
+ }
+
+ send_esel(num);
- send_esel(num);
-
finish:
sd_bus_unref(bus);
- return 0;
+ return 0;
}
OpenPOWER on IntegriCloud