diff options
| author | jhurst <jhurst@cinecert.com> | 2006-05-29 22:32:40 +0000 |
|---|---|---|
| committer | jhurst <> | 2006-05-29 22:32:40 +0000 |
| commit | 1c20f520f0ac0d44c64cc53991f12c84a416b48f (patch) | |
| tree | 0ac4a891e886d3f5198ca1033d108d6dc5de55e7 /src/asdcp-test.cpp | |
| parent | 04591a0dae1919f7ec3d740173b55dfad742fba6 (diff) | |
format string fixes
Diffstat (limited to 'src/asdcp-test.cpp')
| -rwxr-xr-x | src/asdcp-test.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/asdcp-test.cpp b/src/asdcp-test.cpp index 381e5bd..5eaffe3 100755 --- a/src/asdcp-test.cpp +++ b/src/asdcp-test.cpp @@ -84,7 +84,7 @@ public: ProductName = "asdcp-test"; char s_buf[128]; - snprintf(s_buf, 128, "%lu.%lu.%lu", VERSION_MAJOR, VERSION_APIMINOR, VERSION_IMPMINOR); + snprintf(s_buf, 128, "%u.%u.%u", VERSION_MAJOR, VERSION_APIMINOR, VERSION_IMPMINOR); ProductVersion = s_buf; } } s_MyInfo; @@ -325,7 +325,7 @@ public: if ( length != KeyLen ) { - fprintf(stderr, "Unexpected key length: %lu, expecting %lu characters.\n", KeyLen, length); + fprintf(stderr, "Unexpected key length: %u, expecting %u characters.\n", KeyLen, length); return; } } @@ -339,7 +339,7 @@ public: if ( length != UUIDlen ) { - fprintf(stderr, "Unexpected key ID length: %lu, expecting %lu characters.\n", UUIDlen, length); + fprintf(stderr, "Unexpected key ID length: %u, expecting %u characters.\n", UUIDlen, length); return; } } @@ -371,7 +371,7 @@ public: fb_size = atoi(argv[i]); if ( verbose_flag ) - fprintf(stderr, "Frame Buffer size: %lu bytes.\n", fb_size); + fprintf(stderr, "Frame Buffer size: %u bytes.\n", fb_size); break; @@ -395,7 +395,7 @@ public: if ( file_count >= MAX_IN_FILES ) { - fprintf(stderr, "Filename lists exceeds maximum list size: %lu\n", MAX_IN_FILES); + fprintf(stderr, "Filename lists exceeds maximum list size: %u\n", MAX_IN_FILES); return; } } @@ -453,7 +453,7 @@ write_MPEG2_file(CommandOptions& Options) { fputs("MPEG-2 Pictures\n", stderr); fputs("VideoDescriptor:\n", stderr); - fprintf(stderr, "Frame Buffer size: %lu\n", Options.fb_size); + fprintf(stderr, "Frame Buffer size: %u\n", Options.fb_size); MPEG2::VideoDescriptorDump(VDesc); } } @@ -567,7 +567,7 @@ read_MPEG2_file(CommandOptions& Options) if ( Options.verbose_flag ) { - fprintf(stderr, "Frame Buffer size: %lu\n", Options.fb_size); + fprintf(stderr, "Frame Buffer size: %u\n", Options.fb_size); MPEG2::VideoDescriptorDump(VDesc); } } @@ -643,7 +643,7 @@ gop_start_test(CommandOptions& Options) if ( Options.verbose_flag ) { - fprintf(stderr, "Frame Buffer size: %lu\n", Options.fb_size); + fprintf(stderr, "Frame Buffer size: %u\n", Options.fb_size); MPEG2::VideoDescriptorDump(VDesc); } } @@ -664,7 +664,7 @@ gop_start_test(CommandOptions& Options) if ( FrameBuffer.FrameType() != FRAME_I ) fprintf(stderr, "Expecting an I frame, got %c\n", FrameTypeChar(FrameBuffer.FrameType())); - fprintf(stderr, "Requested frame %lu, got %lu\n", i, FrameBuffer.FrameNumber()); + fprintf(stderr, "Requested frame %u, got %u\n", i, FrameBuffer.FrameNumber()); } } @@ -702,7 +702,7 @@ write_JP2K_file(CommandOptions& Options) { fprintf(stderr, "JPEG 2000 pictures\n"); fputs("PictureDescriptor:\n", stderr); - fprintf(stderr, "Frame Buffer size: %lu\n", Options.fb_size); + fprintf(stderr, "Frame Buffer size: %u\n", Options.fb_size); JP2K::PictureDescriptorDump(PDesc); } } @@ -815,7 +815,7 @@ read_JP2K_file(CommandOptions& Options) if ( Options.verbose_flag ) { - fprintf(stderr, "Frame Buffer size: %lu\n", Options.fb_size); + fprintf(stderr, "Frame Buffer size: %u\n", Options.fb_size); JP2K::PictureDescriptorDump(PDesc); } } @@ -855,7 +855,7 @@ read_JP2K_file(CommandOptions& Options) Kumu::FileWriter OutFile; char filename[256]; ui32_t write_count; - snprintf(filename, 256, "%s%06lu.j2c", Options.file_root, i); + snprintf(filename, 256, "%s%06u.j2c", Options.file_root, i); result = OutFile.OpenWrite(filename); if ( ASDCP_SUCCESS(result) ) @@ -902,7 +902,7 @@ write_PCM_file(CommandOptions& Options) if ( Options.verbose_flag ) { - fprintf(stderr, "48Khz PCM Audio, %s fps (%lu spf)\n", + fprintf(stderr, "48Khz PCM Audio, %s fps (%u spf)\n", Options.szPictureRate(), PCM::CalcSamplesPerFrame(ADesc)); fputs("AudioDescriptor:\n", stderr); @@ -964,7 +964,7 @@ write_PCM_file(CommandOptions& Options) if ( FrameBuffer.Size() != FrameBuffer.Capacity() ) { fprintf(stderr, "WARNING: Last frame read was short, PCM input is possibly not frame aligned.\n"); - fprintf(stderr, "Expecting %lu bytes, got %lu.\n", FrameBuffer.Capacity(), FrameBuffer.Size()); + fprintf(stderr, "Expecting %u bytes, got %u.\n", FrameBuffer.Capacity(), FrameBuffer.Size()); result = RESULT_ENDOFFILE; continue; } |
