summaryrefslogtreecommitdiff
path: root/src/eeprom_main.c
diff options
context:
space:
mode:
authorJames Maki <jmaki@multitech.com>2010-09-10 11:03:34 -0500
committerJames Maki <jmaki@multitech.com>2010-09-10 11:03:34 -0500
commit84feafae92bb0a0521367bcaaa186b27cb5e8a2e (patch)
tree7b768085447ac321f9bf81da115357c5425dbbe5 /src/eeprom_main.c
parent800b4a8f9952095725fa83b35a77caf173ee6fa2 (diff)
downloadmts-id-eeprom-84feafae92bb0a0521367bcaaa186b27cb5e8a2e.tar.gz
mts-id-eeprom-84feafae92bb0a0521367bcaaa186b27cb5e8a2e.tar.bz2
mts-id-eeprom-84feafae92bb0a0521367bcaaa186b27cb5e8a2e.zip
add quotes to yaml output
Diffstat (limited to 'src/eeprom_main.c')
-rw-r--r--src/eeprom_main.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/eeprom_main.c b/src/eeprom_main.c
index f2c76dc..51a4a87 100644
--- a/src/eeprom_main.c
+++ b/src/eeprom_main.c
@@ -101,22 +101,22 @@ static int yaml_out(const char *name, struct mts_id_eeprom_layout *id_eeprom)
fprintf(file, "---\n");
fprintf(file, "\n");
- fprintf(file, "vendor-id: %.32s\n", id_eeprom->vendor_id);
- fprintf(file, "product-id: %.32s\n", id_eeprom->product_id);
- fprintf(file, "device-id: %.32s\n", id_eeprom->device_id);
- fprintf(file, "hw-version: %.32s\n", id_eeprom->hw_version);
- fprintf(file, "mac-addr: %02X:%02X:%02X:%02X:%02X:%02X\n",
+ fprintf(file, "vendor-id: \"%.32s\"\n", id_eeprom->vendor_id);
+ fprintf(file, "product-id: \"%.32s\"\n", id_eeprom->product_id);
+ fprintf(file, "device-id: \"%.32s\"\n", id_eeprom->device_id);
+ fprintf(file, "hw-version: \"%.32s\"\n", id_eeprom->hw_version);
+ fprintf(file, "mac-addr: \"%02X:%02X:%02X:%02X:%02X:%02X\"\n",
id_eeprom->mac_addr[0],
id_eeprom->mac_addr[1],
id_eeprom->mac_addr[2],
id_eeprom->mac_addr[3],
id_eeprom->mac_addr[4],
id_eeprom->mac_addr[5]);
- fprintf(file, "imei: %.32s\n", id_eeprom->imei);
- fprintf(file, "capa-gps: %s\n", DEVICE_CAPA(id_eeprom->capa, CAPA_GPS) ? "yes" : "no");
- fprintf(file, "capa-din: %s\n", DEVICE_CAPA(id_eeprom->capa, CAPA_DIN) ? "yes" : "no");
- fprintf(file, "capa-dout: %s\n", DEVICE_CAPA(id_eeprom->capa, CAPA_DOUT) ? "yes" : "no");
- fprintf(file, "capa-adc: %s\n", DEVICE_CAPA(id_eeprom->capa, CAPA_ADC) ? "yes" : "no");
+ fprintf(file, "imei: \"%.32s\"\n", id_eeprom->imei);
+ fprintf(file, "capa-gps: %s\n", DEVICE_CAPA(id_eeprom->capa, CAPA_GPS) ? "true" : "false");
+ fprintf(file, "capa-din: %s\n", DEVICE_CAPA(id_eeprom->capa, CAPA_DIN) ? "true" : "false");
+ fprintf(file, "capa-dout: %s\n", DEVICE_CAPA(id_eeprom->capa, CAPA_DOUT) ? "true" : "false");
+ fprintf(file, "capa-adc: %s\n", DEVICE_CAPA(id_eeprom->capa, CAPA_ADC) ? "true" : "false");
fprintf(file, "capa: \"");
int i;