X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Ffb-param.c;h=22f988c6d42d3a03effd32c04704893a96d7ba6f;hb=342e0c3edeacf4eecd03da36c879ca817c64a0f3;hp=0d9d690418fb89be3c745fbd875574fe3c93e06f;hpb=44697ea9c408bbbd5b359e716c6dc8283b471423;p=libucw.git 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; }