/* 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()
                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