Index: amd10h.c =================================================================== --- amd10h.c (revision 334062) +++ amd10h.c (working copy) @@ -137,8 +137,9 @@ } revision = (uint32_t)msrargs.data; - WARNX(1, "found cpu family %#x model %#x " + WARNX(1, "%s: found cpu family %#x model %#x " "stepping %#x extfamily %#x extmodel %#x.", + __func__, (signature >> 8) & 0x0f, (signature >> 4) & 0x0f, (signature >> 0) & 0x0f, (signature >> 20) & 0xff, (signature >> 16) & 0x0f); @@ -147,6 +148,7 @@ /* * Open the firmware file. */ + WARNX(1, "checking %s for update.", path); fd = open(path, O_RDONLY, 0); if (fd < 0) { WARN(0, "open(%s)", path); @@ -249,10 +251,16 @@ fw_data += section_header->size; fw_size -= section_header->size; - if (fw_header->processor_rev_id != equiv_id) + if (fw_header->processor_rev_id != equiv_id) { + WARNX(0, "firmware processort_rev_id %x, equiv_id %x", + fw_header->processor_rev_id, equiv_id); continue; /* different cpu */ - if (fw_header->patch_id <= revision) + } + if (fw_header->patch_id <= revision) { + WARNX(0, "patch_id %x, revision %x", + fw_header->patch_id, revision); continue; /* not newer revision */ + } if (fw_header->nb_dev_id != 0 || fw_header->sb_dev_id != 0) { WARNX(2, "Chipset-specific microcode is not supported"); } Index: cpucontrol.h =================================================================== --- cpucontrol.h (revision 334062) +++ cpucontrol.h (working copy) @@ -35,7 +35,7 @@ extern int verbosity_level; -#ifdef DEBUG +#if 1 # define WARNX(level, ...) \ if ((level) <= verbosity_level) { \ fprintf(stderr, "%s:%d ", __FILE__, __LINE__); \