gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] [PATCH] [RFC] gpsmon: add PPS monitoring at -D2 debug lev


From: Eric S. Raymond
Subject: Re: [gpsd-dev] [PATCH] [RFC] gpsmon: add PPS monitoring at -D2 debug level
Date: Sat, 2 Nov 2013 09:10:40 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

Greg Troxel <address@hidden>:
>   A different issue is whether it's OK to output the PPS messages only at
>   -D2. Should they be visible at any debug level?
> 
> I'm not clear on the strategy for what's at what level.  I would think
> the first debug level would be expected to output things at startup and
> once steady state was reached not print anything.  So 2 seems ok.

From gpsd.h-tail:

/* logging levels */
#define LOG_ERROR       -1      /* errors, display always */
#define LOG_SHOUT       0       /* not an error but we should always see it */
#define LOG_WARN        1       /* not errors but may indicate a problem */
#define LOG_INF         2       /* key informative messages */
#define LOG_DATA        3       /* log data management messages */
#define LOG_PROG        4       /* progress messages */
#define LOG_IO          5       /* IO to and from devices */
#define LOG_SPIN        6       /* logging for catching spin bugs */
#define LOG_RAW         7       /* raw low-level I/O */

My intention for this feature, however, was not for the PPS data to be 
in a debug message at all.  Rather, I want PPS to show in the packet
window so users can see at a glance (a) whether the device emits PPS, 
and (b) which sentence the in-stream reporting cycle starts with.
-- 
                <a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]