Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361524
b: refs/heads/master
c: 7591782
h: refs/heads/master
v: v3
  • Loading branch information
Martin Peres authored and Ben Skeggs committed Mar 18, 2013
1 parent 9ff86b3 commit 3dedbaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eea4eb14a0f74f806e7a458f174f880744a68bdd
refs/heads/master: 7591782b9f30a5a8bcbba5744c85050ff6743d69
6 changes: 3 additions & 3 deletions trunk/drivers/gpu/drm/nouveau/core/subdev/therm/temp.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,16 @@ void nouveau_therm_sensor_event(struct nouveau_therm *therm,
const char *thresolds[] = {
"fanboost", "downclock", "critical", "shutdown"
};
uint8_t temperature = therm->temp_get(therm);
int temperature = therm->temp_get(therm);

if (thrs < 0 || thrs > 3)
return;

if (dir == NOUVEAU_THERM_THRS_FALLING)
nv_info(therm, "temperature (%u C) went below the '%s' threshold\n",
nv_info(therm, "temperature (%i C) went below the '%s' threshold\n",
temperature, thresolds[thrs]);
else
nv_info(therm, "temperature (%u C) hit the '%s' threshold\n",
nv_info(therm, "temperature (%i C) hit the '%s' threshold\n",
temperature, thresolds[thrs]);

active = (dir == NOUVEAU_THERM_THRS_RISING);
Expand Down

0 comments on commit 3dedbaa

Please sign in to comment.