[prev in list] [next in list] [prev in thread] [next in thread]
List: gpsd-commit-watch
Subject: [Gpsd-commit-watch] r4017 - trunk
From: ckuethe at BerliOS <ckuethe () mail ! berlios ! de>
Date: 2006-11-29 5:15:36
Message-ID: 200611290515.kAT5Fan5003026 () sheep ! berlios ! de
[Download RAW message or body]
Author: ckuethe
Date: 2006-11-29 06:15:35 +0100 (Wed, 29 Nov 2006)
New Revision: 4017
Modified:
trunk/drivers.c
Log:
explain why these ioctls might fail
Modified: trunk/drivers.c
===================================================================
--- trunk/drivers.c 2006-11-29 02:28:09 UTC (rev 4016)
+++ trunk/drivers.c 2006-11-29 05:15:35 UTC (rev 4017)
@@ -91,16 +91,18 @@
tstamps.ts_clr = 0;
if (ioctl(session->gpsdata.gps_fd, TIOCSTSTAMP, &tstamps) < 0)
- gpsd_report(LOG_WARN, "can't set kernel timestamping\n");
+ gpsd_report(LOG_WARN, "can't set kernel timestamping: %s\n",
+ strerror(errno));
else
gpsd_report(LOG_WARN, "activated kernel timestamping\n");
#endif /* TIOCSTSTAMP */
if (ioctl(session->gpsdata.gps_fd, TIOCSETD, &ldisc) == -1)
- gpsd_report(LOG_WARN, "can't set nmea discipline\n");
- else{
- session->gpsdata.ldisc = NMEADISC;
+ gpsd_report(LOG_WARN, "can't set nmea discipline: %s\n",
+ strerror(errno));
+ else
gpsd_report(LOG_WARN, "activated nmea discipline\n");
- }
+ /* this is a flag that shows if we've tried the setup */
+ session->gpsdata.ldisc = NMEADISC;
}
#endif /*NMEADISC */
#ifdef NTPSHM_ENABLE
_______________________________________________
Gpsd-commit-watch mailing list
Gpsd-commit-watch@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/gpsd-commit-watch
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic