Browse Source

Fix padding in displayed strings

Georgi Chorbadzhiyski 8 years ago
parent
commit
5225188d5f
2 changed files with 3 additions and 2 deletions
  1. 1 1
      tsfuncs_cat.c
  2. 2 1
      tsfuncs_descriptors.c

+ 1 - 1
tsfuncs_cat.c View File

@@ -169,7 +169,7 @@ void ts_cat_dump(struct ts_cat *cat) {
169 169
     ts_section_header_dump(cat->section_header);
170 170
 
171 171
 	if (cat->program_info_size > 0) {
172
-		ts_LOGf(" * Descriptor dump:\n");
172
+		ts_LOGf("  * Descriptor dump:\n");
173 173
 		ts_descriptor_dump(cat->program_info, cat->program_info_size);
174 174
 	}
175 175
 	ts_LOGf("  * CRC 0x%04x\n", cat->CRC);

+ 2 - 1
tsfuncs_descriptors.c View File

@@ -176,7 +176,8 @@ void ts_descriptor_dump(uint8_t *desc_data, int desc_data_len) {
176 176
 			case  9: { // CA descriptor
177 177
 				uint16_t CA_ID = (data[0] << 8) | data[1];
178 178
 				uint16_t CA_PID = ((data[2] & 0x1F) << 8) | data[3];
179
-				ts_LOGf("Tag 0x%02x (%02d), sz: %d, CA descriptor: CAID 0x%04x (%02d) | CA PID 0x%04x (%d) | %s\n",
179
+				ts_LOGf("%sTag 0x%02x (%02d), sz: %d, CA descriptor: CAID 0x%04x (%02d) | CA PID 0x%04x (%d) | %s\n",
180
+					pad,
180 181
 					tag, tag,
181 182
 					this_length,
182 183
 					CA_ID, CA_ID,