target/cortexm: print t->part_id not ap->partno in unknown device warning

this is the id used to probe, which may or may not be the same
This commit is contained in:
Rafael Silva 2022-08-05 12:01:21 +01:00 committed by Rachel Mant
parent 180ceabae3
commit 87cabb78e5
1 changed files with 2 additions and 2 deletions

View File

@ -498,9 +498,9 @@ bool cortexm_probe(ADIv5_AP_t *ap)
break;
}
#if PC_HOSTED == 0
gdb_outf("Please report unknown device with Designer %x Part ID %x\n", ap->designer_code, ap->partno);
gdb_outf("Please report unknown device with Designer 0x%x Part ID 0x%x\n", t->designer_code, t->part_id);
#else
DEBUG_WARN("Please report unknown device with Designer %x Part ID %x\n", ap->designer_code, ap->partno);
DEBUG_WARN("Please report unknown device with Designer 0x%x Part ID 0x%x\n", t->designer_code, t->part_id);
#endif
#undef PROBE
return true;