summaryrefslogtreecommitdiff
path: root/driver_sirf.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-04-16 12:19:00 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-04-16 12:19:00 -0400
commite2e31856f98542d79d37111e1a8b6d8d173b2f81 (patch)
tree99e73864f9afc54f2d9cfb569b92455b55c09210 /driver_sirf.c
parenta6bb633bc1f446f97834f7678f3d78739a8bbc5b (diff)
downloadgpsd-e2e31856f98542d79d37111e1a8b6d8d173b2f81.tar.gz
Doc update and reindent.
All regression tests pass. Codebase splints and cppchecks clean.
Diffstat (limited to 'driver_sirf.c')
-rw-r--r--driver_sirf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/driver_sirf.c b/driver_sirf.c
index 3769477f..a93fcbfa 100644
--- a/driver_sirf.c
+++ b/driver_sirf.c
@@ -472,11 +472,11 @@ static gps_mask_t sirf_msg_navdata(struct gps_device_t *session,
if (invert) {
words[i] ^= 0x3fffffC0;
}
- parity = isgps_parity( words[i] ) ;
- if ( parity != (words[i] & 0x3F) ) {
+ parity = isgps_parity(words[i]);
+ if (parity != (words[i] & 0x3F)) {
gpsd_report(LOG_PROG,
- "SiRF: 50BPS parity fail words[%d] 0x%x != 0x%x\n", i,
- parity, ( words[i] & 0x1));
+ "SiRF: 50BPS parity fail words[%d] 0x%x != 0x%x\n", i,
+ parity, (words[i] & 0x1));
return 0;
}
words[i] = (words[i] & 0x3fffffff) >> 6;
@@ -488,8 +488,8 @@ static gps_mask_t sirf_msg_navdata(struct gps_device_t *session,
words[5], words[6], words[7], words[8], words[9]);
// Look for the preamble in the first byte OR its complement
if (preamble != 0x74) {
- gpsd_report(LOG_WARN, "SiRF: 50BPS bad premable: 0x%x header 0x%x\n"
- , preamble, words[0]);
+ gpsd_report(LOG_WARN, "SiRF: 50BPS bad premable: 0x%x header 0x%x\n",
+ preamble, words[0]);
return 0;
}