summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ucodeadm/ucodeadm.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/ucodeadm/ucodeadm.c')
-rw-r--r--usr/src/cmd/ucodeadm/ucodeadm.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/usr/src/cmd/ucodeadm/ucodeadm.c b/usr/src/cmd/ucodeadm/ucodeadm.c
index 18d0162b82..65f61facea 100644
--- a/usr/src/cmd/ucodeadm/ucodeadm.c
+++ b/usr/src/cmd/ucodeadm/ucodeadm.c
@@ -387,11 +387,10 @@ ucode_gen_files_intel(uint8_t *buf, int size, char *path)
dprintf("proc_flags = %x, platid = %x, name = %s\n",
uhp->uh_proc_flags, platid, name);
- if (ucode_should_update_intel(name, uhp->uh_rev) != 0) {
-
+ if (ucode_should_update_intel(name,
+ uhp->uh_rev) != 0) {
/* Remove the existing one first */
(void) unlink(name);
-
if (link(firstname, name) == -1) {
ucode_perror(name, EM_SYS);
return (EM_SYS);
@@ -422,12 +421,15 @@ ucode_gen_files_intel(uint8_t *buf, int size, char *path)
continue;
(void) snprintf(name, PATH_MAX,
- "%s/%08X-%02X", path, extp->uet_ext_sig[i],
- id);
+ "%s/%08X-%02X", path,
+ uesp->ues_signature, id);
- if (ucode_should_update_intel(name, uhp->uh_rev)
- != 0) {
+ dprintf("extsig: proc_flags = %x, "
+ "platid = %x, name = %s\n",
+ uesp->ues_proc_flags, id, name);
+ if (ucode_should_update_intel(name,
+ uhp->uh_rev) != 0) {
/* Remove the existing one first */
(void) unlink(name);
if (link(firstname, name) == -1) {