aboutsummaryrefslogtreecommitdiff
path: root/nuttx/fs
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-29 17:42:58 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-29 17:42:58 +0000
commitfb94bc1258c9fe4e78fe0d5515f6a6131a8d1e65 (patch)
tree81bc038356e0e42da3ae837e47097ed0d8ebd2f4 /nuttx/fs
parent2946cb47a8d70406a85c37f2d210e539c240a22b (diff)
downloadpx4-firmware-fb94bc1258c9fe4e78fe0d5515f6a6131a8d1e65.tar.gz
px4-firmware-fb94bc1258c9fe4e78fe0d5515f6a6131a8d1e65.tar.bz2
px4-firmware-fb94bc1258c9fe4e78fe0d5515f6a6131a8d1e65.zip
The USB monitor now works with the stm32f4discover/nsh configuration (but not with the usbnsh configuration)
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5580 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs')
-rw-r--r--nuttx/fs/fs_syslog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/fs/fs_syslog.c b/nuttx/fs/fs_syslog.c
index 779263a3c..d9ad29e0f 100644
--- a/nuttx/fs/fs_syslog.c
+++ b/nuttx/fs/fs_syslog.c
@@ -168,8 +168,10 @@ static inline int syslog_takesem(void)
static inline void syslog_givesem(void)
{
+#ifdef CONFIG_DEBUG
pid_t me = getpid();
DEBUGASSERT(g_sysdev.sl_holder == me);
+#endif
/* Relinquish the semaphore */