summaryrefslogtreecommitdiffstats
path: root/sbc/sbcinfo.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-11-01 15:27:38 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-11-01 15:27:38 +0000
commit9138f99acb799d7ce702afb357c134042f933f4b (patch)
tree1887f013c64c8385fd4b91016c4854b113f986b3 /sbc/sbcinfo.c
parent9a5725b6306e1d69a89d988af94bd3efe1ef5de6 (diff)
Coding style cleanup
Diffstat (limited to 'sbc/sbcinfo.c')
-rw-r--r--sbc/sbcinfo.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/sbc/sbcinfo.c b/sbc/sbcinfo.c
index e8fb398f..7b6d416d 100644
--- a/sbc/sbcinfo.c
+++ b/sbc/sbcinfo.c
@@ -113,7 +113,8 @@ static double calc_bit_rate(struct sbc_frame_hdr *hdr)
return 0;
}
- return ((8 * (calc_frame_len(hdr) + 4) * f) / (nrof_subbands * nrof_blocks));
+ return ((8 * (calc_frame_len(hdr) + 4) * f) /
+ (nrof_subbands * nrof_blocks));
}
static char *freq2str(uint8_t freq)
@@ -226,7 +227,8 @@ static int analyze_file(char *filename)
while (1) {
len = __read(fd, &hdr, sizeof(hdr));
if (len < 0) {
- fprintf(stderr, "Unable to read frame header (error %d)\n", errno);
+ fprintf(stderr, "Unable to read frame header"
+ " (error %d)\n", errno);
break;
}
@@ -234,8 +236,9 @@ static int analyze_file(char *filename)
break;
if (len < sizeof(hdr) || hdr.syncword != 0x9c) {
- fprintf(stderr, "Corrupted SBC stream (len %d syncword 0x%02x)\n",
- len, hdr.syncword);
+ fprintf(stderr, "Corrupted SBC stream "
+ "(len %d syncword 0x%02x)\n",
+ len, hdr.syncword);
break;
}
@@ -260,7 +263,8 @@ static int analyze_file(char *filename)
len = __read(fd, buf, size);
if (len != size) {
- fprintf(stderr, "Unable to read frame data (error %d)\n", errno);
+ fprintf(stderr, "Unable to read frame data "
+ "(error %d)\n", errno);
break;
}