Make the error message level consistent for all supported sysoff ioctls.

Signed-off-by: Miroslav Lichvar <mlich...@redhat.com>
---
 sysoff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysoff.c b/sysoff.c
index 2743859..31b792d 100644
--- a/sysoff.c
+++ b/sysoff.c
@@ -111,7 +111,7 @@ static int sysoff_basic(int fd, int n_samples,
        memset(&pso, 0, sizeof(pso));
        pso.n_samples = n_samples;
        if (ioctl(fd, PTP_SYS_OFFSET, &pso)) {
-               perror("ioctl PTP_SYS_OFFSET");
+               pr_debug("ioctl PTP_SYS_OFFSET: %m");
                return SYSOFF_RUN_TIME_MISSING;
        }
        *result = sysoff_estimate(pso.ts, 0, n_samples, ts, delay);
-- 
2.35.1



_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to