aboutsummaryrefslogtreecommitdiffstats
path: root/test/set22k.c
diff options
context:
space:
mode:
authoretobi <git@e-tobi.net>2013-09-03 09:48:41 +0200
committeretobi <git@e-tobi.net>2013-09-03 09:48:41 +0200
commitab959d7b4194715870128e616b8e29d4a101e488 (patch)
tree61a746231d30817be73416a7d67763fd677a1042 /test/set22k.c
parent6b350466c4902c5b137e0efaf1d189128a7f18f5 (diff)
downloadlinux-dvb-apps-ab959d7b4194715870128e616b8e29d4a101e488.tar.gz
Imported Upstream version 1.1.1+rev1207upstream/1.1.1+rev1207
Diffstat (limited to 'test/set22k.c')
-rw-r--r--test/set22k.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/set22k.c b/test/set22k.c
index 51ffa1c..a9f0d8c 100644
--- a/test/set22k.c
+++ b/test/set22k.c
@@ -1,10 +1,11 @@
-/*
- * Test switching the 22kHz tone signal on and off 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 set22k {on|off}
- */
+#define USAGE \
+"\n" \
+"\nTest switching the 22kHz tone signal on and off 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 set22k {on|off}" \
+"\n"
#include <stdlib.h>
#include <stdio.h>
@@ -24,7 +25,7 @@ int main (int argc, char **argv)
int fd, r;
if (argc != 2 || (strcmp(argv[1], "on") && strcmp(argv[1], "off"))) {
- fprintf (stderr, "usage: %s <on|off>\n", argv[0]);
+ fprintf (stderr, "usage: %s <on|off>\n" USAGE, argv[0]);
return 1;
}
if (getenv("FRONTEND"))
@@ -47,4 +48,3 @@ int main (int argc, char **argv)
return 0;
}
-