summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjolan <jolan@openbsd.org>2005-07-26 16:28:28 +0000
committerjolan <jolan@openbsd.org>2005-07-26 16:28:28 +0000
commitee2b401416cee0bfa306c4d8d151c4bf2e4b788f (patch)
tree7e6488f135ec7fe61ee66a472f543067bd33a715
parentmove trace message before calling cvs_connect(); (diff)
downloadwireguard-openbsd-ee2b401416cee0bfa306c4d8d151c4bf2e4b788f.tar.xz
wireguard-openbsd-ee2b401416cee0bfa306c4d8d151c4bf2e4b788f.zip
dlg cant make fun of me for having to use the imperial system anymore
since he can't spell celsius ok dlg@
-rw-r--r--sys/scsi/scsi_safte.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/scsi/scsi_safte.c b/sys/scsi/scsi_safte.c
index 6bcc1b11ddb..f3b79eb5859 100644
--- a/sys/scsi/scsi_safte.c
+++ b/sys/scsi/scsi_safte.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_safte.c,v 1.1 2005/07/25 23:32:33 dlg Exp $ */
+/* $OpenBSD: scsi_safte.c,v 1.2 2005/07/26 16:28:28 jolan Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
@@ -291,7 +291,7 @@ safte_read_config(struct safte_softc *sc)
return (1);
DPRINTF(("%s: nfans: %d npwrsup: %d nslots: %d doorlock: %d ntemps: %d"
- " alarm: %d celcius: %d ntherm: %d\n", DEVNAME(sc), config.nfans,
+ " alarm: %d celsius: %d ntherm: %d\n", DEVNAME(sc), config.nfans,
config.npwrsup, config.nslots, config.doorlock, config.ntemps,
config.alarm, SAFTE_CFG_CELCIUS(config.therm),
SAFTE_CFG_NTHERM(config.therm)));
@@ -370,15 +370,15 @@ safte_read_encstat(struct safte_softc *sc, int refresh)
}
int64_t
-safte_temp2uK(u_int8_t measured, int celcius)
+safte_temp2uK(u_int8_t measured, int celsius)
{
int64_t temp;
temp = (int64_t)measured;
temp += SAFTE_TEMP_OFFSET;
temp *= 1000000; /* convert to micro (mu) degrees */
- if (!celcius)
- temp = ((temp - 32000000) * 5) / 9; /* convert to celcius */
+ if (!celsius)
+ temp = ((temp - 32000000) * 5) / 9; /* convert to celsius */
temp += 273150000; /* convert to kelvin */