Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: uthum.c
- ===================================================================
- RCS file: /cvs/src/sys/dev/usb/uthum.c,v
- retrieving revision 1.23
- diff -u -p -r1.23 uthum.c
- --- uthum.c 8 May 2013 08:26:25 -0000 1.23
- +++ uthum.c 31 Jul 2013 04:12:43 -0000
- @@ -820,15 +820,19 @@ uthum_print_sensorinfo(struct uthum_soft
- printf("type %s (temperature)",
- uthum_sensor_type_s[s->dev_type]);
- if (s->cal_offset)
- - printf(", calibration offset %d.%d degC",
- - s->cal_offset / 100, abs(s->cal_offset % 100));
- + printf(", calibration offset %c%d.%d degC",
- + (s->cal_offset < 0) ? '-' : '+',
- + abs(s->cal_offset / 100),
- + abs(s->cal_offset % 100));
- break;
- case SENSOR_HUMIDITY:
- printf("type %s (humidity)",
- uthum_sensor_type_s[s->dev_type]);
- if (s->cal_offset)
- - printf("calibration offset %d.%d %%RH",
- - s->cal_offset / 100, abs(s->cal_offset % 100));
- + printf("calibration offset %c%d.%d %%RH",
- + (s->cal_offset < 0) ? '-' : '+',
- + abs(s->cal_offset / 100),
- + abs(s->cal_offset % 100));
- break;
- default:
- printf("unknown");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement