From 2ecfb288d37c3d5df5be4553a16c2ead8229d54b Mon Sep 17 00:00:00 2001 From: Ilia Popov Date: Thu, 11 Nov 2010 23:17:48 +0100 Subject: [PATCH] Fixed several format strings in printf's dealing with size_t values --- rtengine/dfmanager.cc | 4 ++-- rtengine/rawimagesource.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rtengine/dfmanager.cc b/rtengine/dfmanager.cc index c6b1a3902..2db60c866 100644 --- a/rtengine/dfmanager.cc +++ b/rtengine/dfmanager.cc @@ -103,7 +103,7 @@ std::list& dfInfo::getHotPixels() } /* updateRawImage() load into ri the actual pixel data from pathname if there is a single shot * otherwise load each file from the pathNames list and extract a template from the media; - * the first file is used also for reading all information other than pixels + * the first file is used also for reading all information other than pixels */ void dfInfo::updateRawImage() { @@ -189,7 +189,7 @@ void dfInfo::updateBadPixelList( RawImage *df ) } } if( settings->verbose ){ - printf( "Extracted %u pixels from darkframe %s\n", badPixels.size(),df->fname.c_str() ); + printf( "Extracted %zu pixels from darkframe %s\n", badPixels.size(),df->fname.c_str() ); } } diff --git a/rtengine/rawimagesource.cc b/rtengine/rawimagesource.cc index 6ab571121..478318af9 100644 --- a/rtengine/rawimagesource.cc +++ b/rtengine/rawimagesource.cc @@ -904,7 +904,7 @@ void RawImageSource::preprocess (const RAWParams &raw) for(std::list::iterator iter = bp->begin(); iter != bp->end(); iter++,totBP++) bitmapBads[ widthBitmap * (iter->y) + (iter->x)/8] |= 1<<(iter->x%8); if( settings->verbose ){ - printf( "Correcting %u pixels from .badpixels\n",bp->size()); + printf( "Correcting %zu pixels from .badpixels\n",bp->size()); } } bp = 0; @@ -916,7 +916,7 @@ void RawImageSource::preprocess (const RAWParams &raw) for(std::list::iterator iter = bp->begin(); iter != bp->end(); iter++,totBP++) bitmapBads[ widthBitmap *iter->y + iter->x/8] |= 1<<(iter->x%8); if( settings->verbose && bp->size()>0){ - printf( "Correcting %u hotpixels from darkframe\n",bp->size()); + printf( "Correcting %zu hotpixels from darkframe\n",bp->size()); } }