Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117712
b: refs/heads/master
c: 520a2c2
h: refs/heads/master
v: v3
  • Loading branch information
H. Peter Anvin authored and James Bottomley committed Oct 23, 2008
1 parent 7784d38 commit b7f85a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: a8659597bf744b0f8d2560e2a734b5c941569e0e
refs/heads/master: 520a2c2741747062e75f91cd0faddb564fbc64d2
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,7 @@ sd_read_capacity(struct scsi_disk *sdkp, unsigned char *buffer)

{
char cap_str_2[10], cap_str_10[10];
u64 sz = sdkp->capacity << ffz(~sector_size);
u64 sz = (u64)sdkp->capacity << ilog2(sector_size);

string_get_size(sz, STRING_UNITS_2, cap_str_2,
sizeof(cap_str_2));
Expand Down

0 comments on commit b7f85a6

Please sign in to comment.