Skip to content

Commit

Permalink
[SCSI] iscsi: modify iscsi printk so it can take driver data pointers
Browse files Browse the repository at this point in the history
Some drivers want to be able to just pass in the driver data pointers
to the iscsi objects. To enable this we need the iscsi printk macro
to cast the object.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
  • Loading branch information
Mike Christie authored and James Bottomley committed Jul 12, 2008
1 parent 5d91e20 commit 5af3e91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/scsi/libiscsi.h
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,11 @@ extern int iscsi_conn_bind(struct iscsi_cls_session *, struct iscsi_cls_conn *,
extern void iscsi_conn_failure(struct iscsi_conn *conn, enum iscsi_err err);
extern int iscsi_conn_get_param(struct iscsi_cls_conn *cls_conn,
enum iscsi_param param, char *buf);
extern void iscsi_suspend_tx(struct iscsi_conn *conn);

#define iscsi_conn_printk(prefix, _c, fmt, a...) \
iscsi_cls_conn_printk(prefix, _c->cls_conn, fmt, ##a)
iscsi_cls_conn_printk(prefix, ((struct iscsi_conn *)_c)->cls_conn, \
fmt, ##a)

/*
* pdu and task processing
Expand Down

0 comments on commit 5af3e91

Please sign in to comment.