mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
fix format string warnings
This commit is contained in:
committed by
svenhoefer
parent
4130c04d16
commit
630c66330d
@@ -1,4 +1,4 @@
|
|||||||
AM_CPPFLAGS = -fno-rtti -fno-exceptions
|
AM_CPPFLAGS = -fno-rtti -fno-exceptions -D__STDC_FORMAT_MACROS
|
||||||
|
|
||||||
AM_CPPFLAGS += \
|
AM_CPPFLAGS += \
|
||||||
-I$(top_builddir) \
|
-I$(top_builddir) \
|
||||||
|
@@ -248,7 +248,7 @@ void CComponentsChannelLogo::initVarPictureChannellLogo()
|
|||||||
pic_name = tmp_logo;
|
pic_name = tmp_logo;
|
||||||
|
|
||||||
// #ifdef DEBUG_CC
|
// #ifdef DEBUG_CC
|
||||||
printf(" [CComponentsChannelLogo] %s: init image: %s (has_logo=%d, channel_id=%lld)\n", __FUNCTION__, pic_name.c_str(), has_logo, channel_id);
|
printf("\t[CComponentsChannelLogo] %s: init image: %s (has_logo=%d, channel_id=%" PRIu64 ")\n", __func__, pic_name.c_str(), has_logo, channel_id);
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
initVarPicture();
|
initVarPicture();
|
||||||
|
@@ -596,7 +596,8 @@ bool CFlashExpert::checkSize(int mtd, std::string &backupFile)
|
|||||||
uint64_t backupMaxSize = (btotal - bused) * (uint64_t)bsize;
|
uint64_t backupMaxSize = (btotal - bused) * (uint64_t)bsize;
|
||||||
uint64_t res = 10; // Reserved 10% of available space
|
uint64_t res = 10; // Reserved 10% of available space
|
||||||
backupMaxSize = (backupMaxSize - ((backupMaxSize * res) / 100ULL)) / 1024ULL;
|
backupMaxSize = (backupMaxSize - ((backupMaxSize * res) / 100ULL)) / 1024ULL;
|
||||||
printf("##### [%s] backupMaxSize: %llu, btotal: %llu, bused: %llu, bsize: %ld\n", __FUNCTION__, backupMaxSize, btotal, bused, bsize);
|
printf("##### [%s] backupMaxSize: %" PRIu64 ", btotal: %" PRIu64 ", bused: %" PRIu64 ", bsize: %ld\n",
|
||||||
|
__func__, backupMaxSize, btotal, bused, bsize);
|
||||||
|
|
||||||
if (backupMaxSize < backupRequiredSize) {
|
if (backupMaxSize < backupRequiredSize) {
|
||||||
snprintf(errMsg, sizeof(errMsg)-1, g_Locale->getText(LOCALE_FLASHUPDATE_READ_NO_AVAILABLE_SPACE), path.c_str(), backupMaxSize, backupRequiredSize);
|
snprintf(errMsg, sizeof(errMsg)-1, g_Locale->getText(LOCALE_FLASHUPDATE_READ_NO_AVAILABLE_SPACE), path.c_str(), backupMaxSize, backupRequiredSize);
|
||||||
|
Reference in New Issue
Block a user