diff options
Diffstat (limited to 'include/scsi/libiscsi.h')
-rw-r--r-- | include/scsi/libiscsi.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index 278011fb3c2f..5784e4ff8edc 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h | |||
@@ -344,6 +344,10 @@ extern int iscsi_session_get_param(struct iscsi_cls_session *cls_session, | |||
344 | #define session_to_cls(_sess) \ | 344 | #define session_to_cls(_sess) \ |
345 | hostdata_session(_sess->host->hostdata) | 345 | hostdata_session(_sess->host->hostdata) |
346 | 346 | ||
347 | #define iscsi_session_printk(prefix, _sess, fmt, a...) \ | ||
348 | iscsi_cls_session_printk(prefix, \ | ||
349 | (struct iscsi_cls_session *)session_to_cls(_sess), fmt, ##a) | ||
350 | |||
347 | /* | 351 | /* |
348 | * connection management | 352 | * connection management |
349 | */ | 353 | */ |
@@ -358,6 +362,9 @@ extern void iscsi_conn_failure(struct iscsi_conn *conn, enum iscsi_err err); | |||
358 | extern int iscsi_conn_get_param(struct iscsi_cls_conn *cls_conn, | 362 | extern int iscsi_conn_get_param(struct iscsi_cls_conn *cls_conn, |
359 | enum iscsi_param param, char *buf); | 363 | enum iscsi_param param, char *buf); |
360 | 364 | ||
365 | #define iscsi_conn_printk(prefix, _c, fmt, a...) \ | ||
366 | iscsi_cls_conn_printk(prefix, _c->cls_conn, fmt, ##a) | ||
367 | |||
361 | /* | 368 | /* |
362 | * pdu and task processing | 369 | * pdu and task processing |
363 | */ | 370 | */ |