mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 05:36:22 +00:00
Filter out zero port names
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3252 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -349,6 +349,9 @@ qla2x00_show_port_database(struct device *dev,
|
||||
entries = pmap_len/sizeof(*pmap24);
|
||||
|
||||
for (i = 0; (i < entries) && (size < max_size); ++i) {
|
||||
uint64_t *wwn = (uint64_t *)pmap24[i].port_name;
|
||||
if (*wwn == 0)
|
||||
continue;
|
||||
size += scnprintf(buffer+size, max_size-size,
|
||||
"%04x %02x%02x%02x%02x%02x%02x%02x%02x\n",
|
||||
le16_to_cpu(pmap24[i].loop_id),
|
||||
|
||||
Reference in New Issue
Block a user