Print the G*RMC NMEA sentence that was correctly parsed and used as the
ToD source in the default loglevel when the nmea source was used.

This prevents printing all NMEA sentences available only in loglevel 7,
and gives enough visibility on the state of GNSS receiver.

Signed-off-by: Maciek Machnikowski <mac...@machnikowski.net>
---
 nmea.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nmea.c b/nmea.c
index 44c7c01..abc4b90 100644
--- a/nmea.c
+++ b/nmea.c
@@ -155,6 +155,7 @@ static int nmea_scan_rmc(struct nmea_parser *np, struct 
nmea_rmc *result)
        if (cnt != 3) {
                return -1;
        }
+       pr_info("time sentence: %s", np->sentence);
        tm.tm_year += 100;
        tm.tm_mon--;
        tm.tm_isdst = 0;
-- 
2.30.2



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

Reply via email to