From 42399eb734f2b3576ba1b9c8d334ba3b3708cc5b Mon Sep 17 00:00:00 2001 From: Michal Vaner Date: Sun, 30 Nov 2008 17:08:13 +0100 Subject: [PATCH] Better error message for missing fb-direct Tells how it got disabled. --- ucw/fb-param.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/ucw/fb-param.c b/ucw/fb-param.c index 0d9d6904..22f988c6 100644 --- a/ucw/fb-param.c +++ b/ucw/fb-param.c @@ -25,14 +25,21 @@ struct fb_params fbpar_def = { static char * fbpar_cf_commit(struct fb_params *p UNUSED) { -#ifndef CONFIG_UCW_THREADS if (p->type == FB_DIRECT) - return "Direct I/O is supported only with CONFIG_UCW_THREADS"; + { +#ifndef CONFIG_UCW_THREADS + return "Direct I/O is supported only with CONFIG_UCW_THREADS"; +#endif +#ifdef CONFIG_DARWIN + return "Direct I/O is not supported on darwin"; +#endif +#ifndef CONFIG_DIRECT_IO + return "Direct I/O disabled by configure switch -CONFIG_DIRECT_IO"; #endif #ifndef CONFIG_UCW_FB_DIRECT - if (p->type == FB_DIRECT) - return "Direct I/O is disabled"; + return "Direct I/O disabled by configure switch -CONFIG_UCW_FB_DIRECT"; #endif + } return NULL; } -- 2.39.2