kernels/linux-2.4.0/drivers/acorn/scsi/powertec.c
/* Prototype: const char *powertecscsi_info(struct Scsi_Host * host)
 * Purpose  : returns a descriptive string about this interface,
 * Params   : host - driver host structure to return info for.
 * Returns  : pointer to a static buffer containing null terminated string.
 */
const char *powertecscsi_info(struct Scsi_Host * host)
Purpose  : returns a descriptive string about this interface,
Params   : host - driver host structure to return info for.
Returns  : pointer to a static buffer containing null terminated string.
const char * powertecscsi_info ( struct Scsi_Host * host ) Purpose : returns a descriptive string about this interface Params : host - driver host structure to return info for . Returns : pointer to a static buffer containing null terminated string .
const char *powertecscsi_info(struct Scsi_Host *host)
{
	PowerTecScsi_Info *info = (PowerTecScsi_Info *)host->hostdata;
	static char string[100], *p;
	p = string;
	p += sprintf(p, "%s ", host->hostt->name);
	p += fas216_info(&info->info, p);
	p += sprintf(p, "v%d.%d.%d terminators o%s",
		     VER_MAJOR, VER_MINOR, VER_PATCH,
		     info->control.terms ? "n" : "ff");
	return string;
}
const char * powertecscsi_info ( struct Scsi_Host * host ) { PowerTecScsi_Info * info = ( PowerTecScsi_Info * ) host -> hostdata ; static char string [ 100 ] , * p ; p = string ; p += sprintf ( p , " " , host -> hostt -> name ) ; p += fas216_info ( & info -> info , p ) ; p += sprintf ( p , " " , VER_MAJOR , VER_MINOR , VER_PATCH , info -> control . terms ? " " : " " ) ; return string ; }
Prototype: const char *powertecscsi_info(struct Scsi_Host * host)
 Purpose  : returns a descriptive string about this interface,
 Params   : host - driver host structure to return info for.
Prototype : const char * powertecscsi_info ( struct Scsi_Host * host ) Purpose : returns a descriptive string about this interface Params : host - driver host structure to return info for .