diff options
author | Christoph Böhmwalder <christoph.boehmwalder@linbit.com> | 2022-12-01 14:03:50 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-12-01 21:33:49 +0300 |
commit | 677b367275f8729546aee918e547056a90dbdc07 (patch) | |
tree | 450703b755bcb45d7a92ae3a6899a31579b70f88 /drivers/block/drbd/drbd_polymorph_printk.h | |
parent | e3fa02d7d420c7cfb7077cc6eeb62c886ba5ff39 (diff) | |
download | linux-677b367275f8729546aee918e547056a90dbdc07.tar.xz |
drbd: add context parameter to expect() macro
Originally-from: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com>
Link: https://lore.kernel.org/r/20221201110349.1282687-6-christoph.boehmwalder@linbit.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/drbd/drbd_polymorph_printk.h')
-rw-r--r-- | drivers/block/drbd/drbd_polymorph_printk.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_polymorph_printk.h b/drivers/block/drbd/drbd_polymorph_printk.h index 914f2a3c0e2e..8e0082d139ba 100644 --- a/drivers/block/drbd/drbd_polymorph_printk.h +++ b/drivers/block/drbd/drbd_polymorph_printk.h @@ -130,10 +130,10 @@ void drbd_dyn_dbg_with_wrong_object_type(void); * * Unlike the assert macro, this macro returns a boolean result. */ -#define expect(exp) ({ \ +#define expect(x, exp) ({ \ bool _bool = (exp); \ if (!_bool && drbd_ratelimit()) \ - drbd_err(device, "ASSERTION %s FAILED in %s\n", \ + drbd_err(x, "ASSERTION %s FAILED in %s\n", \ #exp, __func__); \ _bool; \ }) |