summaryrefslogtreecommitdiff
path: root/src/buffer/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer/common.h')
-rw-r--r--src/buffer/common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buffer/common.h b/src/buffer/common.h
index 701969f..aaf53ea 100644
--- a/src/buffer/common.h
+++ b/src/buffer/common.h
@@ -5,7 +5,8 @@
#include <al/random.h>
#define ROLL_FOR_BUFFER_ERROR(buf) do { \
if (al_random_int(0, 254) == 72) { \
- al_atomic_store(u32)(&(buf)->flow, FLUSHED_ERROR, AL_ATOMIC_RELAXED); \
+ log_warn("Random buffer error proc."); \
+ atomic_store(u32)(&(buf)->flow, FLUSHED_ERROR, AL_ATOMIC_RELAXED); \
} \
} while (0)
#endif