diff options
Diffstat (limited to 'block/blk-throttle.c')
-rw-r--r-- | block/blk-throttle.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/block/blk-throttle.c b/block/blk-throttle.c index e2aaf27e1f10..e9b7a47f6da0 100644 --- a/block/blk-throttle.c +++ b/block/blk-throttle.c | |||
@@ -155,9 +155,12 @@ static inline int throtl_tg_##name(const struct throtl_grp *tg) \ | |||
155 | 155 | ||
156 | THROTL_TG_FNS(on_rr); | 156 | THROTL_TG_FNS(on_rr); |
157 | 157 | ||
158 | #define throtl_log_tg(td, tg, fmt, args...) \ | 158 | #define throtl_log_tg(td, tg, fmt, args...) do { \ |
159 | blk_add_trace_msg((td)->queue, "throtl %s " fmt, \ | 159 | char __pbuf[128]; \ |
160 | blkg_path(tg_to_blkg(tg)), ##args); \ | 160 | \ |
161 | blkg_path(tg_to_blkg(tg), __pbuf, sizeof(__pbuf)); \ | ||
162 | blk_add_trace_msg((td)->queue, "throtl %s " fmt, __pbuf, ##args); \ | ||
163 | } while (0) | ||
161 | 164 | ||
162 | #define throtl_log(td, fmt, args...) \ | 165 | #define throtl_log(td, fmt, args...) \ |
163 | blk_add_trace_msg((td)->queue, "throtl " fmt, ##args) | 166 | blk_add_trace_msg((td)->queue, "throtl " fmt, ##args) |