Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148138
b: refs/heads/master
c: 238ddbb
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and James Bottomley committed Jun 9, 2009
1 parent b1835ec commit b84ece6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: cf4e6363859d30f24f8cd3e8930dbff399cc3550
refs/heads/master: 238ddbb98c327a7392ced5ae65216c55969749ea
5 changes: 3 additions & 2 deletions trunk/drivers/scsi/gdth_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ static int gdth_get_info(char *buffer,char **start,off_t offset,int length,
struct Scsi_Host *host, gdth_ha_str *ha)
{
int size = 0,len = 0;
int hlen;
off_t begin = 0,pos = 0;
int id, i, j, k, sec, flag;
int no_mdrv = 0, drv_no, is_mirr;
Expand Down Expand Up @@ -192,11 +193,11 @@ static int gdth_get_info(char *buffer,char **start,off_t offset,int length,
if (reserve_list[0] == 0xff)
strcpy(hrec, "--");
else {
sprintf(hrec, "%d", reserve_list[0]);
hlen = sprintf(hrec, "%d", reserve_list[0]);
for (i = 1; i < MAX_RES_ARGS; i++) {
if (reserve_list[i] == 0xff)
break;
sprintf(hrec,"%s,%d", hrec, reserve_list[i]);
hlen += snprintf(hrec + hlen , 161 - hlen, ",%d", reserve_list[i]);
}
}
size = sprintf(buffer+len,
Expand Down

0 comments on commit b84ece6

Please sign in to comment.