From: batt Date: Sun, 4 Oct 2009 16:35:52 +0000 (+0000) Subject: Fix warnings. X-Git-Tag: 2.3.0~68 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=4bb859f02e9d23c755be19ede3b518b58e8dd18c;p=bertos.git Fix warnings. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3013 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/net/afsk_test.c b/bertos/net/afsk_test.c index e0b80ef6..cdbf19c2 100644 --- a/bertos/net/afsk_test.c +++ b/bertos/net/afsk_test.c @@ -88,30 +88,30 @@ int afsk_testSetup(void) uint32_t offset; ASSERT(fread(&offset, 1, sizeof(offset), fp_adc) == sizeof(offset)); offset = be32_to_cpu(offset); - kprintf("AU file offset: %ld\n", offset); + kprintf("AU file offset: %ld\n", (long)offset); ASSERT(offset >= 24); ASSERT(fread(&data_size, 1, sizeof(data_size), fp_adc) == sizeof(data_size)); data_size = be32_to_cpu(data_size); - kprintf("AU file data_size: %ld\n", data_size); + kprintf("AU file data_size: %ld\n", (long)data_size); ASSERT(data_size); uint32_t encoding; ASSERT(fread(&encoding, 1, sizeof(encoding), fp_adc) == sizeof(encoding)); encoding = be32_to_cpu(encoding); - kprintf("AU file encoding: %ld\n", encoding); + kprintf("AU file encoding: %ld\n", (long)encoding); ASSERT(encoding == 2); // 8 bit linear PCM uint32_t sample_rate; ASSERT(fread(&sample_rate, 1, sizeof(sample_rate), fp_adc) == sizeof(sample_rate)); sample_rate = be32_to_cpu(sample_rate); - kprintf("AU file sample_rate: %ld\n", sample_rate); + kprintf("AU file sample_rate: %ld\n", (long)sample_rate); ASSERT(sample_rate == 9600); uint32_t channels; ASSERT(fread(&channels, 1, sizeof(channels), fp_adc) == sizeof(channels)); channels = be32_to_cpu(channels); - kprintf("AU file channels: %ld\n", channels); + kprintf("AU file channels: %ld\n", (long)channels); ASSERT(channels == 1); #if CPU_AVR