lkml.org 
[lkml]   [2003]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch][3/3] qlogic: set host name before using scsi_host_alloc()
> +	sprintf(qinfo,
> + "Qlogicfas Driver version 0.46, chip %02X at %03X, IRQ %d, TPdma:%d",
> + qltyp, qbase, qlirq, QL_TURBO_PDMA);
> + host->name = qinfo;
> +

This should be

.name = "qlogicfas",

in the host template defintion instead, that makes the text const and
has no runtime overhead.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.273 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site