summaryrefslogtreecommitdiffstats
path: root/firmware/logf.c
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2009-02-07 19:59:51 +0000
committerFrank Gevaerts <frank@gevaerts.be>2009-02-07 19:59:51 +0000
commit7ae9c8d5ced6f9693c8b773f3614249a944f42ad (patch)
tree339636b4c3c1b58ea4fa49087fe40eb1d5129e64 /firmware/logf.c
parentaf58ec63b63b184980f1fb648b54c09a4bdc08ec (diff)
downloadrockbox-7ae9c8d5ced6f9693c8b773f3614249a944f42ad.tar.gz
rockbox-7ae9c8d5ced6f9693c8b773f3614249a944f42ad.tar.bz2
rockbox-7ae9c8d5ced6f9693c8b773f3614249a944f42ad.zip
Fix building of tools/database/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19940 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/logf.c')
-rw-r--r--firmware/logf.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/firmware/logf.c b/firmware/logf.c
index 054baa14ea..8821f4a658 100644
--- a/firmware/logf.c
+++ b/firmware/logf.c
@@ -97,15 +97,6 @@ static void displayremote(void)
#define displayremote()
#endif
-static void check_logfindex(void)
-{
- if(logfindex >= MAX_LOGF_LINES) {
- /* wrap */
- logfwrap = true;
- logfindex = 0;
- }
-}
-
#ifdef __PCTOOL__
void _logf(const char *format, ...)
{
@@ -117,6 +108,15 @@ void _logf(const char *format, ...)
printf("DEBUG: %s\n", buf);
}
#else
+static void check_logfindex(void)
+{
+ if(logfindex >= MAX_LOGF_LINES) {
+ /* wrap */
+ logfwrap = true;
+ logfindex = 0;
+ }
+}
+
void _logf(const char *format, ...)
{
int len;