From afb554fc6644e637902740a7b870adfa261c15dc Mon Sep 17 00:00:00 2001 From: Denis Ahrens Date: Thu, 31 Jan 2013 18:43:03 +0100 Subject: [PATCH] add the ID of the fan to the output --- smc-command/smc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/smc-command/smc.c b/smc-command/smc.c index e8add92..9b46a1c 100644 --- a/smc-command/smc.c +++ b/smc-command/smc.c @@ -381,6 +381,9 @@ kern_return_t SMCPrintFans(void) for (i = 0; i < totalFans; i++) { printf("\nFan #%d:\n", i); + sprintf(key, "F%dID", i); + SMCReadKey(key, &val); + printf(" Fan ID : %s\n", val.bytes+4); sprintf(key, "F%dAc", i); SMCReadKey(key, &val); printf(" Actual speed : %.0f\n", _strtof(val.bytes, val.dataSize, 2));