Rev 4180 | Rev 4218 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4180 | Rev 4194 | ||
---|---|---|---|
Line 236... | Line 236... | ||
236 | 236 | ||
237 | void klog_update(void) |
237 | void klog_update(void) |
238 | { |
238 | { |
239 | spinlock_lock(&klog_lock); |
239 | spinlock_lock(&klog_lock); |
240 | 240 | ||
241 | if (klog_inited && event_is_subscribed(EVENT_KLOG) && klog_uspace > 0) { |
241 | if ((klog_inited) && (event_is_subscribed(EVENT_KLOG)) && (klog_uspace > 0)) { |
242 | event_notify_3(EVENT_KLOG, klog_start, klog_len, klog_uspace); |
242 | event_notify_3(EVENT_KLOG, klog_start, klog_len, klog_uspace); |
243 | klog_uspace = 0; |
243 | klog_uspace = 0; |
244 | } |
244 | } |
245 | 245 | ||
246 | spinlock_unlock(&klog_lock); |
246 | spinlock_unlock(&klog_lock); |