diff options
| author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-06-02 15:27:36 +0200 |
|---|---|---|
| committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-06-02 15:31:00 +0200 |
| commit | 65fbb827310bbf33c747fd183797362ba4d09705 (patch) | |
| tree | dd2aa26c9590b7b14d682a2b926813f6b1f32a98 | |
| parent | 4210382b158189fc5c53f215896e6b6765f0ef51 (diff) | |
| download | exynos-gpio-tool-65fbb827310bbf33c747fd183797362ba4d09705.tar.gz exynos-gpio-tool-65fbb827310bbf33c747fd183797362ba4d09705.tar.bz2 exynos-gpio-tool-65fbb827310bbf33c747fd183797362ba4d09705.zip | |
test: fix lines over 80 characters
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
| -rw-r--r-- | tests.c | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -63,7 +63,8 @@ static int test_output_value_with_libgpiod(int debug, char *devmem, int fd, char *gpioset_low_command; int rc; - rc = asprintf(&gpioset_high_command, "gpioset %s %d=1 > /dev/null", bank, gpio_offset); + rc = asprintf(&gpioset_high_command, "gpioset %s %d=1 > /dev/null", + bank, gpio_offset); if (rc == -1) { rc = errno; printf("%s: asprintf failed with error %d: %s\n", @@ -81,7 +82,8 @@ static int test_output_value_with_libgpiod(int debug, char *devmem, int fd, rc = gpio_get_output_value(devmem, fd, page_size, bank, gpio_offset); assert (rc == GPIO_VALUE_HIGH); - rc = asprintf(&gpioset_low_command, "gpioset %s %d=0 > /dev/null", bank, gpio_offset); + rc = asprintf(&gpioset_low_command, "gpioset %s %d=0 > /dev/null", bank, + gpio_offset); if (rc == -1) { rc = errno; printf("%s: asprintf failed with error %d: %s\n", @@ -163,7 +165,8 @@ static int test_direction_with_libgpiod(int debug, char *devmem, int fd, char *gpioset_command; int rc; - rc = asprintf(&gpioget_command, "gpioget %s %d > /dev/null", bank, gpio_offset); + rc = asprintf(&gpioget_command, "gpioget %s %d > /dev/null", bank, + gpio_offset); if (rc == -1) { rc = errno; printf("%s: asprintf failed with error %d: %s\n", @@ -179,7 +182,8 @@ static int test_direction_with_libgpiod(int debug, char *devmem, int fd, rc = gpio_get_direction(devmem, fd, page_size, bank, gpio_offset); assert (rc == GPIO_INPUT); - rc = asprintf(&gpioset_command, "gpioset %s %d=1 > /dev/null", bank, gpio_offset); + rc = asprintf(&gpioset_command, "gpioset %s %d=1 > /dev/null", bank, + gpio_offset); if (rc == -1) { rc = errno; printf("%s: asprintf failed with error %d: %s\n", @@ -209,10 +213,12 @@ int run_tests(int debug, char *devmem, int fd, size_t page_size) has_gpioset = device_has_gpioset(debug); if (has_gpioget && has_gpioset) { - test_direction_with_libgpiod(debug, devmem, fd, page_size, "gpj1", 1); + test_direction_with_libgpiod(debug, devmem, fd, page_size, + "gpj1", 1); printf("[ OK ] libgpiod GPIO direction test\n"); - test_output_value_with_libgpiod(debug, devmem, fd, page_size, "gpj1", 1); + test_output_value_with_libgpiod(debug, devmem, fd, page_size, + "gpj1", 1); printf("[ OK ] libgpiod GPIO output value test\n"); } else { if (!has_gpioget) |
