linuxptp/Remove-bogus-command-line-option.patch
starlet-dx 7ef8fad0c0 Remove bogus command line option
(cherry picked from commit 758f9a032ceb7b1d678d897b97a47efbc5b37a7b)
2024-01-30 19:11:15 +08:00

36 lines
1.3 KiB
Diff

From 1b7a1e2cda1da59cee9aea38009663cdaf278487 Mon Sep 17 00:00:00 2001
From: Richard Cochran <richardcochran@gmail.com>
Date: Mon, 25 Mar 2019 06:04:40 -0700
Subject: [PATCH] ptp4l: Remove bogus command line option.
Commit c8107c8d ("config: Add a configuration option for TC mode.")
added a new TC mode. An early version of the patch series included a
new '-t' command line option, but this was dropped considering the
fact that long options are always available. IOW the TC user can
simply add '--clock_type=P2P_TC' to the command line, making the
single dash option redundant.
This patch fixes the misleading usage message by removing the
non-existing option.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
ptp4l.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/ptp4l.c b/ptp4l.c
index 9ef8169..d53970f 100644
--- a/ptp4l.c
+++ b/ptp4l.c
@@ -59,7 +59,6 @@ static void usage(char *progname)
" -p [dev] PTP hardware clock device to use, default auto\n"
" (ignored for SOFTWARE/LEGACY HW time stamping)\n"
" -s slave only mode (overrides configuration file)\n"
- " -t transparent clock\n"
" -l [num] set the logging level to 'num'\n"
" -m print messages to stdout\n"
" -q do not print messages to the syslog\n"
--
2.27.0