Browse Source

Fix padding in displayed strings

Georgi Chorbadzhiyski 13 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
     ts_section_header_dump(cat->section_header);
169
     ts_section_header_dump(cat->section_header);
170
 
170
 
171
 	if (cat->program_info_size > 0) {
171
 	if (cat->program_info_size > 0) {
172
-		ts_LOGf(" * Descriptor dump:\n");
172
+		ts_LOGf("  * Descriptor dump:\n");
173
 		ts_descriptor_dump(cat->program_info, cat->program_info_size);
173
 		ts_descriptor_dump(cat->program_info, cat->program_info_size);
174
 	}
174
 	}
175
 	ts_LOGf("  * CRC 0x%04x\n", cat->CRC);
175
 	ts_LOGf("  * CRC 0x%04x\n", cat->CRC);

+ 2
- 1
tsfuncs_descriptors.c View File

176
 			case  9: { // CA descriptor
176
 			case  9: { // CA descriptor
177
 				uint16_t CA_ID = (data[0] << 8) | data[1];
177
 				uint16_t CA_ID = (data[0] << 8) | data[1];
178
 				uint16_t CA_PID = ((data[2] & 0x1F) << 8) | data[3];
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
 					tag, tag,
181
 					tag, tag,
181
 					this_length,
182
 					this_length,
182
 					CA_ID, CA_ID,
183
 					CA_ID, CA_ID,

Loading…
Cancel
Save