From: Uwe Hermann Date: Wed, 26 May 2010 23:51:55 +0000 (+0200) Subject: Use 'kHz' (not 'KHz') consistently. X-Git-Tag: libsigrok-0.1.0~493 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=38ba2522516b481fa3619bdec56d1e2a4b7a5f45;p=libsigrok.git Use 'kHz' (not 'KHz') consistently. --- diff --git a/hardware/zeroplus-logic-cube/analyzer.c b/hardware/zeroplus-logic-cube/analyzer.c index 7b069e10..283820b2 100644 --- a/hardware/zeroplus-logic-cube/analyzer.c +++ b/hardware/zeroplus-logic-cube/analyzer.c @@ -194,7 +194,7 @@ static int __analyzer_set_freq(libusb_device_handle *devh, int freq, int scale) reg0 = 5; reg2 = 64; break; - case FREQ_SCALE_KHZ: /* KHz */ + case FREQ_SCALE_KHZ: /* kHz */ if (freq >= 500 && freq < 1000) { reg0 = freq * 0.01; divisor = 5; diff --git a/output/common.c b/output/common.c index 69338f08..1fc5df7d 100644 --- a/output/common.c +++ b/output/common.c @@ -26,7 +26,7 @@ /** * Convert a numeric samplerate value to its "natural" string representation. * - * E.g. a value of 3000000 would be converted to "3 MHz", 20000 to "20 KHz". + * E.g. a value of 3000000 would be converted to "3 MHz", 20000 to "20 kHz". * * @param samplerate The samplerate in Hz. * @return A malloc()ed string representation of the samplerate value, @@ -46,7 +46,7 @@ char *sigrok_samplerate_string(uint64_t samplerate) else if (samplerate >= MHZ(1)) r = snprintf(o, 30, "%" PRIu64 " MHz", samplerate / 1000000); else if (samplerate >= KHZ(1)) - r = snprintf(o, 30, "%" PRIu64 " KHz", samplerate / 1000); + r = snprintf(o, 30, "%" PRIu64 " kHz", samplerate / 1000); else r = snprintf(o, 30, "%" PRIu64 " Hz", samplerate);