From 7605879c8ff781355bf51ac32240a734f92dae24 Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Sun, 18 Feb 2024 21:16:39 +0100 Subject: [PATCH] Fix debug macros Signed-off-by: Robert Baldyga --- modules/cas_cache/debug.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/cas_cache/debug.h b/modules/cas_cache/debug.h index cc7d2b10e..3dac09ff8 100644 --- a/modules/cas_cache/debug.h +++ b/modules/cas_cache/debug.h @@ -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__ @@ -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) @@ -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, ...) \