OCF: CRYPTDEB(): Enhance to allow formatted logging
Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
d48315f087
commit
289b9798be
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=331598
@ -525,7 +525,7 @@ crypto_newsession(u_int64_t *sid, struct cryptoini *cri, int crid)
|
|||||||
(*sid) |= (lid & 0xffffffff);
|
(*sid) |= (lid & 0xffffffff);
|
||||||
cap->cc_sessions++;
|
cap->cc_sessions++;
|
||||||
} else
|
} else
|
||||||
CRYPTDEB("dev newsession failed");
|
CRYPTDEB("dev newsession failed: %d", err);
|
||||||
} else {
|
} else {
|
||||||
CRYPTDEB("no driver");
|
CRYPTDEB("no driver");
|
||||||
err = EOPNOTSUPP;
|
err = EOPNOTSUPP;
|
||||||
|
@ -348,10 +348,11 @@ struct cryptostats {
|
|||||||
#ifdef _KERNEL
|
#ifdef _KERNEL
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
#define CRYPTDEB(s) do { printf("%s:%d: %s\n", __FILE__, __LINE__, s); \
|
#define CRYPTDEB(s, ...) do { \
|
||||||
} while (0)
|
printf("%s:%d: " s "\n", __FILE__, __LINE__, ## __VA_ARGS__); \
|
||||||
|
} while (0)
|
||||||
#else
|
#else
|
||||||
#define CRYPTDEB(s) do { } while (0)
|
#define CRYPTDEB(...) do { } while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Standard initialization structure beginning */
|
/* Standard initialization structure beginning */
|
||||||
|
Loading…
Reference in New Issue
Block a user