Fix compiler format warnings

Origin commit data
------------------
Branch: ni/coolstream
Commit: e35969afe2
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-02-22 (Wed, 22 Feb 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2017-02-22 06:21:29 +01:00
parent 8c4609a9b0
commit 3c7aca7949
4 changed files with 10 additions and 10 deletions

View File

@@ -502,7 +502,7 @@ int CCAMMenuHandler::doMenu(int slot, CA_SLOT_TYPE slotType)
g_Locale->getText(slotType == CA_SLOT_TYPE_CI ? LOCALE_CI_WAITING : LOCALE_SC_WAITING));
g_RCInput->getMsgAbsoluteTimeout (&msg, &data, &timeoutEnd);
printf("CCAMMenuHandler::doMenu: msg %x data %x\n", msg, data);
printf("CCAMMenuHandler::doMenu: msg %lx data %lx\n", msg, data);
if (msg == CRCInput::RC_timeout) {
printf("CCAMMenuHandler::doMenu: menu timeout\n");
hideHintBox();

View File

@@ -386,7 +386,7 @@ int CScanTs::handleMsg(neutrino_msg_t msg, neutrino_msg_data_t data)
break;
case NeutrinoMessages::EVT_SCAN_NUM_TRANSPONDERS:
sprintf(buffer, "%u", data);
sprintf(buffer, "%ld", data);
paintLine(xpos2, ypos_transponder, w - (8*fw), buffer);
total = data;
snprintf(str, sizeof(buffer), "scan: %d/%d", done, total);
@@ -426,22 +426,22 @@ int CScanTs::handleMsg(neutrino_msg_t msg, neutrino_msg_data_t data)
break;
case NeutrinoMessages::EVT_SCAN_NUM_CHANNELS:
sprintf(buffer, " = %u", data);
sprintf(buffer, " = %ld", data);
paintLine(xpos1 + 3 * (6*fw), ypos_service_numbers + mheight, width - 3 * (6*fw) - 10, buffer);
break;
case NeutrinoMessages::EVT_SCAN_FOUND_TV_CHAN:
sprintf(buffer, "%u", data);
sprintf(buffer, "%ld", data);
paintLine(xpos1, ypos_service_numbers + mheight, (6*fw), buffer);
break;
case NeutrinoMessages::EVT_SCAN_FOUND_RADIO_CHAN:
sprintf(buffer, "%u", data);
sprintf(buffer, "%ld", data);
paintLine(xpos1 + (6*fw), ypos_service_numbers + mheight, (6*fw), buffer);
break;
case NeutrinoMessages::EVT_SCAN_FOUND_DATA_CHAN:
sprintf(buffer, "%u", data);
sprintf(buffer, "%ld", data);
paintLine(xpos1 + 2 * (6*fw), ypos_service_numbers + mheight, (6*fw), buffer);
break;

View File

@@ -33,7 +33,7 @@ static int upDownKey(int size, neutrino_msg_t msg, int lines, int sel)
return -1;
if (msg >= CRCInput::RC_MaxRC) {
printf("CListHelpers:%s: invalid key? 0x%X\n", __func__, msg);
printf("CListHelpers:%s: invalid key? 0x%lx\n", __func__, msg);
return -1;
}
int key = (int)msg;
@@ -46,7 +46,7 @@ static int upDownKey(int size, neutrino_msg_t msg, int lines, int sel)
else if (msg == CRCInput::RC_down)
step = 1;
else {
printf("CListHelpers:%s: invalid key? 0x%X\n", __func__, msg);
printf("CListHelpers:%s: invalid key? 0x%lx\n", __func__, msg);
return -1;
}
// printf("CListHelpers:%s: key 0x%04lx lines %d size %d sel %d\n", __func__, msg, lines, size, sel);

View File

@@ -2404,7 +2404,7 @@ void CNeutrinoApp::RealRun()
m_idletime = time(NULL);
if (m_screensaver)
{
printf("[neutrino] CSreenSaver stop; msg: %X\n", msg);
printf("[neutrino] CScreenSaver stop; msg: %lX\n", msg);
screensaver(false);
frameBuffer->stopFrame();
@@ -3421,7 +3421,7 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
return messages_return::handled;
}
else if( msg == NeutrinoMessages::CHANGEMODE ) {
printf("CNeutrinoApp::handleMsg: CHANGEMODE to %d rezap %d\n", data & mode_mask, (data & norezap) != norezap);
printf("CNeutrinoApp::handleMsg: CHANGEMODE to %d rezap %d\n", (int)(data & mode_mask), (data & norezap) != norezap);
if((data & mode_mask)== mode_radio) {
if( mode != mode_radio ) {
radioMode((data & norezap) != norezap);