Print device code in avr910.c as unsigned char

This commit is contained in:
Stefan Rueger 2022-08-19 23:14:19 +01:00
parent a4bfa8247d
commit 38aa1313f9
No known key found for this signature in database
GPG Key ID: B0B4F1FD86B1EC55
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ static int avr910_initialize(PROGRAMMER * pgm, AVRPART * p)
break;
part = locate_part_by_avr910_devcode(part_list, c);
avrdude_message(MSG_INFO, " Device code: 0x%02x = %s\n", c, part ? part->desc : "(unknown)");
avrdude_message(MSG_INFO, " Device code: 0x%02x = %s\n", c & 0xff, part? part->desc: "(unknown)");
/* FIXME: Need to lookup devcode and report the device. */