aboutsummaryrefslogtreecommitdiffstats
path: root/test/setvoltage.c
diff options
context:
space:
mode:
authorMark Purcell <msp@debian.org>2008-06-22 11:00:40 +1000
committeretobi <git@e-tobi.net>2013-09-03 09:48:42 +0200
commit891c51ff368ed700dec6025eeb47ce4d96f76418 (patch)
tree3729664829e4faa691d403274f38eb10890b533c /test/setvoltage.c
parent1c6e1f28f54ec2606c23936c1d8689f2be55a86c (diff)
parentab959d7b4194715870128e616b8e29d4a101e488 (diff)
downloadlinux-dvb-apps-891c51ff368ed700dec6025eeb47ce4d96f76418.tar.gz
Imported Debian patch 1.1.1+rev1207-1debian/1.1.1+rev1207-1
Diffstat (limited to 'test/setvoltage.c')
-rw-r--r--test/setvoltage.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/setvoltage.c b/test/setvoltage.c
index 1d14a4c..80f7688 100644
--- a/test/setvoltage.c
+++ b/test/setvoltage.c
@@ -1,10 +1,11 @@
-/*
- * Test switching the voltage signal high and low on a SAT frontend.
- * (Note: DiSEqC equipment ignores this after it has once seen a diseqc
- * sequence; reload the driver or unplug/replug the SAT cable to reset.)
- *
- * usage: FRONTEND=/dev/dvb/adapterX/frontendX setvoltage {13|18}
- */
+#define USAGE \
+"\n" \
+"\nTest switching the voltage signal high and low on a SAT frontend." \
+"\n(Note: DiSEqC equipment ignores this after it has once seen a diseqc" \
+"\n sequence; reload the driver or unplug/replug the SAT cable to reset.)" \
+"\n" \
+"\nusage: FRONTEND=/dev/dvb/adapterX/frontendX setvoltage {13|18}" \
+"\n"
#include <stdlib.h>
#include <stdio.h>
@@ -23,7 +24,7 @@ int main (int argc, char **argv)
int fd, r;
if (argc != 2 || (strcmp(argv[1], "13") && strcmp(argv[1], "18"))) {
- fprintf (stderr, "usage: %s <13|18>\n", argv[0]);
+ fprintf (stderr, "usage: %s <13|18>\n" USAGE, argv[0]);
return -1;
}
if (getenv("FRONTEND"))
@@ -44,4 +45,3 @@ int main (int argc, char **argv)
return 0;
}
-