Skip to content

Commit

Permalink
Fix debug macros
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
  • Loading branch information
robertbaldyga committed Sep 10, 2024
1 parent d453456 commit ded760a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/cas_cache/debug.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright(c) 2012-2022 Intel Corporation
* Copyright(c) 2024 Huawei Technologies
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef __CASDISK_DEBUG_H__
Expand All @@ -12,7 +13,7 @@
printk(KERN_INFO "%s\n", __func__)

#define CAS_DEBUG_DISK_TRACE(dsk) \
printk(KERN_INFO "[%u] %s\n", dsk->id, __func__)
printk(KERN_INFO "[%s] %s\n", dsk->path, __func__)

#define CAS_DEBUG_MSG(msg) \
printk(KERN_INFO "%s - %s\n", __func__, msg)
Expand All @@ -22,8 +23,8 @@
__func__, ##__VA_ARGS__)

#define CAS_DEBUG_DISK(dsk, format, ...) \
printk(KERN_INFO "[%u] %s - "format"\n", \
dsk->id, \
printk(KERN_INFO "[%s] %s - "format"\n", \
dsk->path, \
__func__, ##__VA_ARGS__)

#define CAS_DEBUG_ERROR(error, ...) \
Expand Down

0 comments on commit ded760a

Please sign in to comment.