diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-01-25 05:58:20 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-01-25 05:58:20 -0500 |
commit | b725d65d74d0506fd1233f7fea24d5adcc81ad41 (patch) | |
tree | f65f898ec3a99c206de6a1d29e30840d18a10de9 /test_bits.c | |
parent | 968c44824192a437f957b7d74cb4a8c54b782ff4 (diff) | |
download | gpsd-b725d65d74d0506fd1233f7fea24d5adcc81ad41.tar.gz |
Quieter bits testing.
Diffstat (limited to 'test_bits.c')
-rw-r--r-- | test_bits.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test_bits.c b/test_bits.c index 4419213d..7977e027 100644 --- a/test_bits.c +++ b/test_bits.c @@ -223,9 +223,10 @@ int main(int argc, char *argv[]) shiftleft(buf, 28, 30); - printf("Left-shifted 30 bits: %s\n", hexdump(buf, 28)); + if (!quiet) + printf("Left-shifted 30 bits: %s\n", hexdump(buf, 28)); /* - * After the 24-bit shift, the but array loses its first three bytes: + * After the 24-bit shift, the bit array loses its first three bytes: * 0x0405060708 = 00000100 00000101 00000110 00000111 00001000 * By inspection, the results of the 6-bit shift are * 00000001 01000001 10000001 11000010 00 |