From 3b7f6bc43f3b02b0fdec2aa7a4b4250ed38b255a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Pinkava?= Date: Mon, 14 Apr 2014 22:03:05 +0200 Subject: [PATCH] more human friendly output formating Align channel numbers and power values to be easily readable. --- src/c0_detect.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c0_detect.cc b/src/c0_detect.cc index 97b0593..a5ad9e7 100644 --- a/src/c0_detect.cc +++ b/src/c0_detect.cc @@ -157,9 +157,9 @@ int c0_detect(usrp_source *u, int bi) { r = l->scan(b, b_len, &offset, 0); if(r && (fabsf(offset - GSM_RATE / 4) < ERROR_DETECT_OFFSET_MAX)) { // found - printf("\tchan: %d (%.1fMHz ", i, freq / 1e6); + printf("\tchan: %4d (%.1fMHz ", i, freq / 1e6); display_freq(offset - GSM_RATE / 4); - printf(")\tpower: %6.2lf\n", power[i]); + printf(")\tpower: %10.2f\n", power[i]); notfound_count = 0; i = next_chan(i, bi); } else {