From 02677d6cab036c9b861cd0aa47baf4cc63143ec6 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 12 Jan 2015 22:25:25 +0100 Subject: [PATCH] frontend.cpp/pzapit.cpp: fix format string Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/c92d4fad1a14d6cd55ef586531fe215b5e8a0fe4 Author: Thilo Graf Date: 2015-01-12 (Mon, 12 Jan 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/zapit/src/frontend.cpp | 2 +- src/zapit/src/pzapit.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zapit/src/frontend.cpp b/src/zapit/src/frontend.cpp index 2bc885346..dcad640e0 100644 --- a/src/zapit/src/frontend.cpp +++ b/src/zapit/src/frontend.cpp @@ -694,7 +694,7 @@ struct dvb_frontend_event CFrontend::getEvent(void) } else if (event.status & FE_TIMEDOUT) { if(timedout < timer_msec) timedout = timer_msec; - printf("[fe%d] ############################## FE_TIMEDOUT (max %d)\n", fenumber, timedout); + printf("[fe%d] ############################## FE_TIMEDOUT (max %u)\n", fenumber, timedout); /*break;*/ } else { if (event.status & FE_HAS_SIGNAL) diff --git a/src/zapit/src/pzapit.cpp b/src/zapit/src/pzapit.cpp index 269283171..d31e8a718 100644 --- a/src/zapit/src/pzapit.cpp +++ b/src/zapit/src/pzapit.cpp @@ -653,7 +653,7 @@ int main (int argc, char** argv) std::vector::const_iterator ch_resp; for (ch_resp = channels.begin(), channel = 1; ch_resp != channels.end(); ch_resp++, ++channel) //std::cout << channel << ": " << ch_resp->name << ": " << ch_resp->channel_id<< std::endl; - printf("%3d: %s (%04x)\n", channel, ch_resp->name, (short) (ch_resp->channel_id &0xFFFF)); + printf("%3u: %s (%04x)\n", channel, ch_resp->name, (short) (ch_resp->channel_id &0xFFFF)); return 0; } }