Skip to content

Commit 31d2dc9

Browse files
committed
sof-logger: remove component name print for sof logger
Due to previous change, there is no valid component uuid for sof logger, so component name loopup will return unknown, remove this part. Signed-off-by: Baofeng Tian <baofeng.tian@intel.com>
1 parent 6522408 commit 31d2dc9

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

tools/logger/convert.c

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -406,25 +406,6 @@ static const char *get_level_name(uint32_t level)
406406
}
407407
}
408408

409-
static const char *get_component_name(uint32_t trace_class, uint32_t uid_ptr)
410-
{
411-
const struct snd_sof_uids_header *uids_dict = global_config->uids_dict;
412-
const struct sof_uuid_entry *uid_entry;
413-
414-
/* if uid_ptr is non-zero, find name in the ldc file */
415-
if (uid_ptr) {
416-
if (uid_ptr < uids_dict->base_address ||
417-
uid_ptr >= uids_dict->base_address +
418-
uids_dict->data_length)
419-
return "<uid?>";
420-
uid_entry = get_uuid_entry(uid_ptr);
421-
return uid_entry->name;
422-
}
423-
424-
/* do not resolve legacy (deprecated) trace class name */
425-
return "unknown";
426-
}
427-
428409
/* remove superfluous leading file path and shrink to last 20 chars */
429410
static char *format_file_name(char *file_name_raw, int full_name)
430411
{
@@ -512,12 +493,11 @@ static void print_entry_params(const struct log_entry_header *dma_log,
512493
ids[0] = '\0';
513494

514495
if (raw_output) { /* "raw" means script-friendly (not all hex) */
515-
fprintf(out_fd, "%s%u %u %s%s%s ",
496+
fprintf(out_fd, "%s%u %u %s%s ",
516497
entry->header.level == use_colors ?
517498
(LOG_LEVEL_CRITICAL ? KRED : KNRM) : "",
518499
dma_log->core_id,
519500
entry->header.level,
520-
get_component_name(entry->header.component_class, 0),
521501
raw_output && strlen(ids) ? "-" : "",
522502
ids);
523503

@@ -546,9 +526,8 @@ static void print_entry_params(const struct log_entry_header *dma_log,
546526
fprintf(out_fd, "c%d ", dma_log->core_id);
547527

548528
/* component name and id */
549-
fprintf(out_fd, "%s%-12s %-5s%s ",
529+
fprintf(out_fd, "%s %-5s%s ",
550530
use_colors ? KYEL : "",
551-
get_component_name(entry->header.component_class, 0),
552531
ids,
553532
use_colors ? KNRM : "");
554533

0 commit comments

Comments
 (0)