kernel: fix broken depends syntax introduced in r37933
[oweals/openwrt.git] / target / linux / generic / patches-3.6 / 930-crashlog.patch
index 41afaee079051953e09587b91e2d9afd02c6276f..88923993f313acbc1c650cd3a396a4077c43aef0 100644 (file)
@@ -26,7 +26,7 @@
  
 +config CRASHLOG
 +      bool "Crash logging"
-+      depends on (!NO_BOOTMEM || HAVE_MEMBLOCK) && !(ARM || SPARC)
++      depends on (!NO_BOOTMEM || HAVE_MEMBLOCK) && !(ARM || SPARC || PPC)
 +
  config BLK_DEV_INITRD
        bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support"
 +              return;
 +
 +      va_start(args, fmt);
-+      crashlog_buf->len += vsnprintf(
++      crashlog_buf->len += vscnprintf(
 +              &crashlog_buf->data[crashlog_buf->len],
 +              len, fmt, args);
 +      va_end(args);