summaryrefslogtreecommitdiff
path: root/gpsd_json.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-11-10 19:27:38 -0800
committerGary E. Miller <gem@rellim.com>2018-11-10 19:27:38 -0800
commitd4e08feaecf88fee5ef8f268d6dc63f27f1cc590 (patch)
tree943421d0615907dc5f19923b51f09b101530f632 /gpsd_json.c
parent9bb0afeac71876dba31fdc77ee30194603f61049 (diff)
downloadgpsd-d4e08feaecf88fee5ef8f268d6dc63f27f1cc590.tar.gz
RAW: Save space in the JSON. Data from GREIS.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r--gpsd_json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsd_json.c b/gpsd_json.c
index 86079040..b38a3668 100644
--- a/gpsd_json.c
+++ b/gpsd_json.c
@@ -737,7 +737,7 @@ void json_raw_dump(const struct gps_data_t *gpsdata,
if (gpsdata->dev.path[0] != '\0')
str_appendf(reply, replylen, "\"device\":\"%s\",", gpsdata->dev.path);
- str_appendf(reply, replylen, "\"time\":%ld,\"nsec\":%9ld,\"rawdata\":[",
+ str_appendf(reply, replylen, "\"time\":%ld,\"nsec\":%ld,\"rawdata\":[",
(long)gpsdata->raw.mtime.tv_sec, gpsdata->raw.mtime.tv_nsec);
for (i = 0; i < MAXCHANNELS; i++) {
@@ -747,7 +747,7 @@ void json_raw_dump(const struct gps_data_t *gpsdata,
}
str_appendf(reply, replylen,
"{\"gnssid\":%d,\"svid\":%d,\"snr\":%d,\"freqid\":%d,"
- "\"obs\":\"%3s\",\"lli\":%1d,\"locktime\":%5d",
+ "\"obs\":\"%s\",\"lli\":%1d,\"locktime\":%d",
gpsdata->raw.meas[i].gnssid, gpsdata->raw.meas[i].svid,
gpsdata->raw.meas[i].snr, gpsdata->raw.meas[i].freqid,
gpsdata->raw.meas[i].obs_code, gpsdata->raw.meas[i].lli,