From 6cfd3e5a5e439183a73c49024bd1c806c900c09c Mon Sep 17 00:00:00 2001 From: Karol Trzcinski Date: Wed, 20 May 2020 15:50:43 +0200 Subject: [PATCH] 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 pipe-task 0x1FFFA03C <34dc0385-fc2f-4f7f-82d2-6cee444533e0> volume-task 0x1FFFA05C volume Signed-off-by: Karol Trzcinski --- tools/logger/convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/logger/convert.c b/tools/logger/convert.c index 882234cb1..67e7fa15e 100644 --- a/tools/logger/convert.c +++ b/tools/logger/convert.c @@ -726,7 +726,7 @@ static int dump_ldc_info(struct convert_config *config, ((uintptr_t)uids_dict + uids_dict->data_offset); 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 - uids_dict->data_offset + uids_dict->base_address; fprintf(out_fd, "\t0x%lX %s\n", uid_addr, name);