1
0
Fork 0

Merging upstream version 2.1~rc0 (Closes: #1015722).

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-16 12:16:19 +01:00
parent 9489161ac8
commit 316e846c86
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
504 changed files with 6751 additions and 2957 deletions

View file

@ -1,3 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef __MEMBLAZE_UTILS_H__
#define __MEMBLAZE_UTILS_H__
@ -199,28 +200,24 @@ struct nvme_p4_smart_log
printf("=Memblaze= %s[%d]-%s():%d=%s\n", \
__FILE__, __LINE__, __func__, ip, argv[ip]); }while(0)
#define fPRINT_PARAM1(format) \
{ \
do \
{ \
fprintf(fdi, format);\
if (print) \
{ \
printf(format); \
} \
} while (0); \
#define fPRINT_PARAM1(format) \
{ \
do { \
if (fdi) \
fprintf(fdi, format); \
if (print) \
printf(format); \
} while (0); \
}
#define fPRINT_PARAM2(format, value) \
{ \
do \
{ \
fprintf(fdi, format, value);\
if (print) \
{ \
printf(format, value); \
} \
} while (0); \
#define fPRINT_PARAM2(format, value) \
{ \
do { \
if (fdi) \
fprintf(fdi, format, value); \
if (print) \
printf(format, value); \
} while (0); \
}
#endif // __MEMBLAZE_UTILS_H__