logger: Increment uuid name during ldc dump

Name and UUID value of component should be aligned with their address.

Output before change:
           ADDRESS                                    UUID NAME
        0x1FFFA000  <8b9d100c-6d78-418f-90a3-e0e805d0852b> host
        0x1FFFA01C  <8b9d100c-6d78-418f-90a3-e0e805d0852b> host
        0x1FFFA03C  <8b9d100c-6d78-418f-90a3-e0e805d0852b> host
and after:
           ADDRESS                                    UUID NAME
        0x1FFFA000  <8b9d100c-6d78-418f-90a3-e0e805d0852b> host
        0x1FFFA01C  <f11818eb-e92e-4082-82a3-dc54c604ebb3> pipe-task
        0x1FFFA03C  <34dc0385-fc2f-4f7f-82d2-6cee444533e0> volume-task
        0x1FFFA05C  <b77e677e-5ff4-4188-af14-fba8bdbf8682> volume

Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
This commit is contained in:
Karol Trzcinski 2020-05-20 15:50:43 +02:00 committed by Daniel Baluta
parent f4208d562f
commit 6cfd3e5a5e
1 changed files with 1 additions and 1 deletions

View File

@ -726,7 +726,7 @@ static int dump_ldc_info(struct convert_config *config,
((uintptr_t)uids_dict + uids_dict->data_offset); ((uintptr_t)uids_dict + uids_dict->data_offset);
while (remaining > 0) { while (remaining > 0) {
name = format_uid_raw(uid_ptr, 0, 0); name = format_uid_raw(&uid_ptr[cnt], 0, 0);
uid_addr = (uintptr_t)&uid_ptr[cnt] - (uintptr_t)uids_dict - uid_addr = (uintptr_t)&uid_ptr[cnt] - (uintptr_t)uids_dict -
uids_dict->data_offset + uids_dict->base_address; uids_dict->data_offset + uids_dict->base_address;
fprintf(out_fd, "\t0x%lX %s\n", uid_addr, name); fprintf(out_fd, "\t0x%lX %s\n", uid_addr, name);