summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;