summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJon Loeliger <jdl@freescale.com>2008-06-06 10:48:31 -0500
committerJon Loeliger <jdl@freescale.com>2008-06-06 10:48:31 -0500
commit1a247ba7fa5fb09f56892a09a990f03ce564b3e2 (patch)
tree9dab0ef013cc6dc7883454808ecf6ba4d7a7a94e /examples
parent2c289e320dcfb3760e99cf1d765cb067194a1202 (diff)
parent8155efbd7ae9c65564ca98affe94631d612ae088 (diff)
downloadu-boot-imx-1a247ba7fa5fb09f56892a09a990f03ce564b3e2.zip
u-boot-imx-1a247ba7fa5fb09f56892a09a990f03ce564b3e2.tar.gz
u-boot-imx-1a247ba7fa5fb09f56892a09a990f03ce564b3e2.tar.bz2
Merge commit 'wd/master'
Diffstat (limited to 'examples')
-rw-r--r--examples/sched.c6
-rw-r--r--examples/smc91111_eeprom.c2
-rw-r--r--examples/timer.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/examples/sched.c b/examples/sched.c
index ae01e0b..b32766f 100644
--- a/examples/sched.c
+++ b/examples/sched.c
@@ -199,7 +199,7 @@ static void thread_yield (void)
PDEBUG ("thread_yield: current tid=%d", current_tid);
-#define SWITCH(new) \
+#define SWITCH(new) \
if(lthreads[new].state == STATE_RUNNABLE) { \
PDEBUG("thread_yield: %d match, ctx=0x%08x", \
new, \
@@ -207,11 +207,11 @@ static void thread_yield (void)
if(setjmp(lthreads[current_tid].context) == 0) { \
current_tid = new; \
PDEBUG("thread_yield: tid %d returns 0", \
- new); \
+ new); \
longjmp(lthreads[new].context, 1); \
} else { \
PDEBUG("thread_yield: tid %d returns 1", \
- new); \
+ new); \
return; \
} \
}
diff --git a/examples/smc91111_eeprom.c b/examples/smc91111_eeprom.c
index f5d8c6a..62347c7 100644
--- a/examples/smc91111_eeprom.c
+++ b/examples/smc91111_eeprom.c
@@ -41,7 +41,7 @@
#define SMC_BASE_ADDRESS CONFIG_SMC91111_BASE
#define EEPROM 0x1;
#define MAC 0x2;
-#define UNKNOWN 0x4;
+#define UNKNOWN 0x4;
void dump_reg (void);
void dump_eeprom (void);
diff --git a/examples/timer.c b/examples/timer.c
index 13ec06f..6628b21 100644
--- a/examples/timer.c
+++ b/examples/timer.c
@@ -253,7 +253,7 @@ int timer (int argc, char *argv[])
);
#endif
} else {
- printf ("\nEnter: q - quit, b - start timer, e - stop timer, ? - get status\n");
+ printf ("\nEnter: q - quit, b - start timer, e - stop timer, ? - get status\n");
}
printf (usage);
}