Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136262
b: refs/heads/master
c: 97218a1
h: refs/heads/master
v: v3
  • Loading branch information
Boaz Harrosh authored and James Bottomley committed Mar 12, 2009
1 parent 56ed92a commit e24a8d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c96952ed7031e7c576ecf90cf95b8ec099d5295a
refs/heads/master: 97218a1499391b174ea95e05b7a40fbb73e79813
11 changes: 7 additions & 4 deletions trunk/drivers/scsi/osd/osd_initiator.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static int _osd_print_system_info(struct osd_dev *od, void *caps)

pFirst = get_attrs[a++].val_ptr;
OSD_INFO("OSD_ATTR_RI_PRODUCT_REVISION_LEVEL [%u]\n",
get_unaligned_be32(pFirst));
pFirst ? get_unaligned_be32(pFirst) : ~0U);

pFirst = get_attrs[a++].val_ptr;
OSD_INFO("OSD_ATTR_RI_PRODUCT_SERIAL_NUMBER [%s]\n",
Expand All @@ -143,15 +143,18 @@ static int _osd_print_system_info(struct osd_dev *od, void *caps)

pFirst = get_attrs[a++].val_ptr;
OSD_INFO("OSD_ATTR_RI_TOTAL_CAPACITY [0x%llx]\n",
_LLU(get_unaligned_be64(pFirst)));
pFirst ? _LLU(get_unaligned_be64(pFirst)) : ~0ULL);

pFirst = get_attrs[a++].val_ptr;
OSD_INFO("OSD_ATTR_RI_USED_CAPACITY [0x%llx]\n",
_LLU(get_unaligned_be64(pFirst)));
pFirst ? _LLU(get_unaligned_be64(pFirst)) : ~0ULL);

pFirst = get_attrs[a++].val_ptr;
OSD_INFO("OSD_ATTR_RI_NUMBER_OF_PARTITIONS [%llu]\n",
_LLU(get_unaligned_be64(pFirst)));
pFirst ? _LLU(get_unaligned_be64(pFirst)) : ~0ULL);

if (a >= nelem)
goto out;

/* FIXME: Where are the time utilities */
pFirst = get_attrs[a++].val_ptr;
Expand Down

0 comments on commit e24a8d7

Please sign in to comment.