diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2010-05-06 21:37:03 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2010-05-06 21:37:03 +0000 |
| commit | 77dfff5a5524e0a9d3ae54d8bb61d3c01e6082bb (patch) | |
| tree | a3c16f138d63e4010fc08fb25db00aa4704da86a | |
| parent | 54548df56e36f870f0870a87dc6b9350836859bf (diff) | |
| download | rockbox-77dfff5a5524e0a9d3ae54d8bb61d3c01e6082bb.zip rockbox-77dfff5a5524e0a9d3ae54d8bb61d3c01e6082bb.tar.gz rockbox-77dfff5a5524e0a9d3ae54d8bb61d3c01e6082bb.tar.bz2 rockbox-77dfff5a5524e0a9d3ae54d8bb61d3c01e6082bb.tar.xz | |
Fix some more snprintf related warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25853 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/gui/skin_engine/skin_tokens.c | 2 | ||||
| -rw-r--r-- | apps/gui/usb_screen.c | 1 | ||||
| -rw-r--r-- | apps/recorder/recording.c | 2 | ||||
| -rw-r--r-- | bootloader/iriver_h1x0.c | 2 | ||||
| -rw-r--r-- | firmware/target/arm/tcc780x/debug-tcc780x.c | 3 |
5 files changed, 6 insertions, 4 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index 6e5a2ea..20206f0 100644 --- a/apps/gui/skin_engine/skin_tokens.c +++ b/apps/gui/skin_engine/skin_tokens.c @@ -1079,7 +1079,7 @@ const char *get_token_value(struct gui_wps *gwps, #endif /* HAVE_SPDIF_IN */ if (intval) *intval = freq+1; /* so the token gets a value 1<=x<=7 */ - snprintf(buf, buf_size, "%d\n", + snprintf(buf, buf_size, "%s\n", freq_strings[global_settings.rec_frequency]); #endif return buf; diff --git a/apps/gui/usb_screen.c b/apps/gui/usb_screen.c index 9895def..2873562 100644 --- a/apps/gui/usb_screen.c +++ b/apps/gui/usb_screen.c @@ -19,6 +19,7 @@ * ****************************************************************************/ +#include <stdbool.h> #include "action.h" #include "font.h" #ifdef HAVE_REMOTE_LCD diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 0f1ff30..d5ac910 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -976,7 +976,7 @@ static const char* reclist_get_name(int selected_item, void * data, #if CONFIG_CODEC == SWCODEC #ifdef HAVE_SPDIF_REC case ITEM_SAMPLERATE_D: - snprintf(buffer, buffer_len, "%s: %d", + snprintf(buffer, buffer_len, "%s: %lu", str(LANG_RECORDING_FREQUENCY), pcm_rec_sample_rate()); break; diff --git a/bootloader/iriver_h1x0.c b/bootloader/iriver_h1x0.c index 83e5455..f16a512 100644 --- a/bootloader/iriver_h1x0.c +++ b/bootloader/iriver_h1x0.c @@ -287,7 +287,7 @@ void failsafe_menu(void) printf("%s %s %s", arrow, options[i], def); } - snprintf(buf, sizeof(buf), "Time left: %ds", + snprintf(buf, sizeof(buf), "Time left: %lds", (TIMEOUT - (current_tick - start_tick)) / HZ); lcd_puts(0, 10, buf); lcd_update(); diff --git a/firmware/target/arm/tcc780x/debug-tcc780x.c b/firmware/target/arm/tcc780x/debug-tcc780x.c index 11d6d2a..3afc5fa 100644 --- a/firmware/target/arm/tcc780x/debug-tcc780x.c +++ b/firmware/target/arm/tcc780x/debug-tcc780x.c @@ -19,11 +19,12 @@ * ****************************************************************************/ +#include <stdbool.h> +#include <stdio.h> #include "config.h" #include "cpu.h" #include "system.h" #include "string.h" -#include <stdbool.h> #include "button.h" #include "lcd.h" #include "font.h" |