From: Uwe Hermann Date: Tue, 6 Aug 2013 22:18:36 +0000 (+0200) Subject: Cosmetics, typos. X-Git-Tag: libsigrok-0.2.1~7 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=b07b42f319488d821d23c3310133872df70987c5 Cosmetics, typos. --- diff --git a/hardware/ikalogic-scanalogic2/protocol.c b/hardware/ikalogic-scanalogic2/protocol.c index 29e374bc..4c06e96d 100644 --- a/hardware/ikalogic-scanalogic2/protocol.c +++ b/hardware/ikalogic-scanalogic2/protocol.c @@ -127,8 +127,8 @@ static void process_sample_data(const struct sr_dev_inst *sdi) /* * Adjust the position of the first sample to be * processed because possibly more samples than - * necessary might have been aquired. This is because - * the number of aquired samples is always rounded up + * necessary might have been acquired. This is because + * the number of acquired samples is always rounded up * to a multiple of 8. */ k = k - (devc->pre_trigger_bytes * 8) + diff --git a/strutil.c b/strutil.c index 4be37ca1..6cb13a6a 100644 --- a/strutil.c +++ b/strutil.c @@ -48,8 +48,8 @@ */ /** - * Convert a numeric value value to its "natural" string representation. - * in SI units + * Convert a numeric value value to its "natural" string representation + * in SI units. * * E.g. a value of 3000000, with units set to "W", would be converted * to "3 MW", 20000 to "20 kW", 31500 would become "31.5 kW". @@ -66,8 +66,8 @@ SR_API char *sr_si_string_u64(uint64_t x, const char *unit) { uint8_t i; uint64_t quot, divisor[] = { - 1, SR_KHZ(1), SR_MHZ(1), SR_GHZ(1), - SR_GHZ(1000), SR_GHZ(1000*1000), SR_GHZ(1000*1000*1000) + SR_HZ(1), SR_KHZ(1), SR_MHZ(1), SR_GHZ(1), + SR_GHZ(1000), SR_GHZ(1000 * 1000), SR_GHZ(1000 * 1000 * 1000), }; const char *p, prefix[] = "\0kMGTPE"; char fmt[8], fract[20] = "", *f;