Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 485496 | Differences between
and this patch

Collapse All | Expand All

(-)lshw-B.02.17_orig/src/core/scsi.cc (-3 / +3 lines)
Lines 482-488 Link Here
482
  if (do_inq(sg_fd, 0, 1, 0x80, rsp_buff, MX_ALLOC_LEN, 0))
482
  if (do_inq(sg_fd, 0, 1, 0x80, rsp_buff, MX_ALLOC_LEN, 0))
483
  {
483
  {
484
    len = rsp_buff[3];
484
    int new_len = rsp_buff[3];
485
    if (len > 0)
485
    if (new_len > 0)
486
      node.setSerial(hw::strip(string(rsp_buff + 4, len)));
486
      node.setSerial(hw::strip(string(rsp_buff + 4, new_len)));
487
  }
487
  }
488
488

Return to bug 485496