summaryrefslogtreecommitdiff
path: root/src/test_seeking
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2012-02-01 20:34:04 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2012-02-01 20:34:04 +1100
commitce8a75134cace056f6c436d54b57bad1a1d93797 (patch)
treead3225304d65339597d053f930328a9cf437a5fb /src/test_seeking
parent8bbbf56403808ff75126cd0840a936aedbc4113b (diff)
downloadflac-ce8a75134cace056f6c436d54b57bad1a1d93797.tar.gz
Fix a bunch of printf format warnings.
Diffstat (limited to 'src/test_seeking')
-rw-r--r--src/test_seeking/main.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/test_seeking/main.c b/src/test_seeking/main.c
index 00dce64a..5c93dd11 100644
--- a/src/test_seeking/main.c
+++ b/src/test_seeking/main.c
@@ -200,11 +200,7 @@ static FLAC__StreamDecoderWriteStatus write_callback_(const FLAC__StreamDecoder
FLAC__ASSERT(frame->header.number_type == FLAC__FRAME_NUMBER_TYPE_SAMPLE_NUMBER); /* decoder guarantees this */
if (!dcd->quiet)
-#ifdef _MSC_VER
- printf("frame@%I64u(%u)... ", frame->header.number.sample_number, frame->header.blocksize);
-#else
- printf("frame@%llu(%u)... ", (unsigned long long)frame->header.number.sample_number, frame->header.blocksize);
-#endif
+ printf("frame@%" PRIu64 "(%u)... ", (uint64_t)frame->header.number.sample_number, frame->header.blocksize);
fflush(stdout);
/* check against PCM data if we have it */
@@ -309,11 +305,7 @@ static FLAC__bool seek_barrage(FLAC__bool is_ogg, const char *filename, off_t fi
return die_s_("expected FLAC__STREAM_DECODER_END_OF_STREAM", decoder);
}
-#ifdef _MSC_VER
- printf("file's total_samples is %I64u\n", decoder_client_data.total_samples);
-#else
- printf("file's total_samples is %llu\n", (unsigned long long)decoder_client_data.total_samples);
-#endif
+ printf("file's total_samples is %" PRIu64 "\n", (uint64_t)decoder_client_data.total_samples);
n = (long int)decoder_client_data.total_samples;
if(n == 0 && total_samples >= 0)
@@ -347,11 +339,7 @@ static FLAC__bool seek_barrage(FLAC__bool is_ogg, const char *filename, off_t fi
pos = (FLAC__uint64)(local_rand_() % n);
}
-#ifdef _MSC_VER
- printf("#%u:seek(%I64u)... ", i, pos);
-#else
- printf("#%u:seek(%llu)... ", i, (unsigned long long)pos);
-#endif
+ printf("#%u:seek(%" PRIu64 ")... ", i, (uint64_t)pos);
fflush(stdout);
if(!FLAC__stream_decoder_seek_absolute(decoder, pos)) {
if(pos >= (FLAC__uint64)n)