fprintf(stderr, "%dx%d (%dbytes/line) %dbit offset=%lx\n", fbconf->hf_width, fbconf->hf_height, fbconf->hf_bytes_per_line, fbconf->hf_pixel_width, fbconf->hf_offset);
hpcErrorF(("%s: %dx%d (%dbytes/line) %dbit offset=%lx\n", pFb->devname, fbconf->hf_width, fbconf->hf_height, fbconf->hf_bytes_per_line, fbconf->hf_pixel_width, fbconf->hf_offset));
hpcFBInit(screen, pScreen, argc, argv)    int	    	  screen;    	/* what screen am I going to be */    ScreenPtr	  pScreen;  	/* The Screen to initialize */    int	    	  argc;	    	/* The number of the Server's arguments. */    char    	  **argv;   	/* The arguments themselves. Don't change! */{	int res;	hpcFbPtr pFb = hpcGetScreenFb(pScreen);	unsigned char *fb = pFb->fb;	int rowsize;	struct hpcfb_fbconf *fbconf = &pFb->info;	pFb->EnterLeave = (void (*)())NoopDDA;	if (!hpcAllocateScreenPrivate(pScreen))	    return FALSE;	if (!fb) {	    int dispmode;	    fbconf->hf_conf_index = HPCFB_CURRENT_CONFIG;	    if (ioctl(pFb->fd, HPCFBIO_GCONF, fbconf) < 0) {		perror("ioctl(HPCFBIO_GCONF)");		return FALSE;	    }	    fprintf(stderr, "%dx%d (%dbytes/line) %dbit offset=%lx\n",		    fbconf->hf_width,		    fbconf->hf_height,		    fbconf->hf_bytes_per_line,		    fbconf->hf_pixel_width,		    fbconf->hf_offset);	    dispmode = WSDISPLAYIO_MODE_MAPPED;	    if (ioctl(pFb->fd, WSDISPLAYIO_SMODE, &dispmode) < 0) {		perror("ioctl(WSDISPLAYIO_SMODE)");		return FALSE;	    }	    fb = hpcMemoryMap((size_t)fbconf->hf_bytes_per_line * fbconf->hf_height,			      fbconf->hf_offset, pFb->fd);	    if (fb == NULL)		return FALSE;	    pFb->fb = fb;	}	switch (fbconf->hf_pixel_width) {	case 1:	    res = mfbScreenInit(pScreen, fb,				fbconf->hf_width,				fbconf->hf_height,				monitorResolution, monitorResolution,				fbconf->hf_bytes_per_line * 8);	    break;	case 8:	    res = hpc8ScreenInit(pScreen, fb,				 fbconf->hf_width,				 fbconf->hf_height,				 monitorResolution, monitorResolution,				 fbconf->hf_bytes_per_line);	    break;	case 16:	    res = hpc16ScreenInit(pScreen, fb,				  fbconf->hf_width,				  fbconf->hf_height,				  monitorResolution, monitorResolution,				  fbconf->hf_bytes_per_line / 2);		break;	default:		return FALSE;	}	if (!res) return FALSE;	/*	 * It seems that backing store can't work.	 */	pScreen->backingStoreSupport = NotUseful;	hpcColormapInit(pScreen);	if (!hpcScreenInit(pScreen))		return FALSE;	(void) (*pScreen->SaveScreen) (pScreen, SCREEN_SAVER_OFF);	res = cfbCreateDefColormap(pScreen);	return res;}