Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317326
b: refs/heads/master
c: a2c49a9
h: refs/heads/master
v: v3
  • Loading branch information
William Blair authored and Greg Kroah-Hartman committed Jun 13, 2012
1 parent 8d9aed9 commit c8b941c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: b38e274fdb6dfa2dd77598b8b6e2c32d7608f494
refs/heads/master: a2c49a9ac993fa2b4795890d5fa56f2fc002453e
11 changes: 8 additions & 3 deletions trunk/drivers/staging/keucr/scsiglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,10 @@ void usb_stor_report_bus_reset(struct us_data *us)
/* we use this macro to help us write into the buffer */
#undef SPRINTF
#define SPRINTF(args...) \
do { if (pos < buffer+length) pos += sprintf(pos, ## args); } while (0)
do { \
if (pos < buffer+length) \
pos += sprintf(pos, ## args); \
} while (0)

/*
* proc_info()
Expand Down Expand Up @@ -279,8 +282,10 @@ static int proc_info(struct Scsi_Host *host, char *buffer, char **start,
pos += sprintf(pos, " Quirks:");

#define US_FLAG(name, value) \
if (us->fflags & value)\
pos += sprintf(pos, " " #name);
do { \
if (us->fflags & value) \
pos += sprintf(pos, " " #name); \
} while (0);
US_DO_ALL_FLAGS
#undef US_FLAG

Expand Down

0 comments on commit c8b941c

Please sign in to comment.