* packet as a side-effect of another packet, such as when an ACK has
* been requested. -phil */
- CDEBUG(D_NET, "sending "LPSZ" bytes from [%d](%p,%d)... to nid: "LPX64" pid %d\n",
- payload_len, payload_niov,
+ CDEBUG(D_NET, "sending %d bytes from [%d](%p,%d)... to nid: "
+ LPX64" pid %d\n", (int)payload_len, payload_niov,
payload_niov > 0 ? payload_iov[0].iov_base : NULL,
- payload_niov > 0 ? payload_iov[0].iov_len : 0,
- nid, pid);
+ (int)(payload_niov > 0 ? payload_iov[0].iov_len : 0), nid, pid);
if ((conn = ktoenal_get_conn (nid)) == NULL)
{
#define CHECK_MEMBER_OFFSET(s,m) \
do { \
- CHECK_VALUE (offsetof (s, m)); \
+ CHECK_VALUE(offsetof(s, m)); \
} while (0)
-#define CHECK_MEMBER_SIZEOF(s,m) \
-do { \
- CHECK_VALUE (sizeof (((s *)0)->m)); \
+#define CHECK_MEMBER_SIZEOF(s,m) \
+do { \
+ CHECK_VALUE((int)sizeof(((s *)0)->m)); \
} while (0)
#define CHECK_MEMBER(s,m) \
do { \
- CHECK_MEMBER_OFFSET (s, m); \
- CHECK_MEMBER_SIZEOF (s, m); \
+ CHECK_MEMBER_OFFSET(s, m); \
+ CHECK_MEMBER_SIZEOF(s, m); \
} while (0)
#define CHECK_STRUCT(s) \
do { \
- BLANK_LINE (); \
+ BLANK_LINE (); \
COMMENT ("Checks for struct "#s); \
- CHECK_VALUE (sizeof (s)); \
+ CHECK_VALUE((int)sizeof(s)); \
} while (0)
void
* packet as a side-effect of another packet, such as when an ACK has
* been requested. -phil */
- CDEBUG(D_NET, "sending "LPSZ" bytes from [%d](%p,%d)... to nid: "LPX64" pid %d\n",
- payload_len, payload_niov,
+ CDEBUG(D_NET, "sending %d bytes from [%d](%p,%d)... to nid: "
+ LPX64" pid %d\n", (int)payload_len, payload_niov,
payload_niov > 0 ? payload_iov[0].iov_base : NULL,
- payload_niov > 0 ? payload_iov[0].iov_len : 0,
- nid, pid);
+ (int)(payload_niov > 0 ? payload_iov[0].iov_len : 0), nid, pid);
if ((conn = ktoenal_get_conn (nid)) == NULL)
{
#define CHECK_MEMBER_OFFSET(s,m) \
do { \
- CHECK_VALUE (offsetof (s, m)); \
+ CHECK_VALUE(offsetof(s, m)); \
} while (0)
-#define CHECK_MEMBER_SIZEOF(s,m) \
-do { \
- CHECK_VALUE (sizeof (((s *)0)->m)); \
+#define CHECK_MEMBER_SIZEOF(s,m) \
+do { \
+ CHECK_VALUE((int)sizeof(((s *)0)->m)); \
} while (0)
#define CHECK_MEMBER(s,m) \
do { \
- CHECK_MEMBER_OFFSET (s, m); \
- CHECK_MEMBER_SIZEOF (s, m); \
+ CHECK_MEMBER_OFFSET(s, m); \
+ CHECK_MEMBER_SIZEOF(s, m); \
} while (0)
#define CHECK_STRUCT(s) \
do { \
- BLANK_LINE (); \
+ BLANK_LINE (); \
COMMENT ("Checks for struct "#s); \
- CHECK_VALUE (sizeof (s)); \
+ CHECK_VALUE((int)sizeof(s)); \
} while (0)
void
#define CHECK_DEFINE(a) \
do { \
- printf (" LASSERT ("#a" == "STRINGIFY(a)");\n"); \
+ printf(" LASSERT ("#a" == "STRINGIFY(a)");\n"); \
} while (0)
#define CHECK_VALUE(a) \
do { \
- printf (" LASSERT ("#a" == %d);\n", a); \
+ printf(" LASSERT ("#a" == %d);\n", a); \
} while (0)
#define CHECK_MEMBER_OFFSET(s,m) \
do { \
- CHECK_VALUE (offsetof (struct s, m)); \
+ CHECK_VALUE(offsetof (struct s, m)); \
} while (0)
#define CHECK_MEMBER_SIZEOF(s,m) \
do { \
- CHECK_VALUE (sizeof (((struct s *)0)->m)); \
+ CHECK_VALUE((int)sizeof(((struct s *)0)->m)); \
} while (0)
#define CHECK_MEMBER(s,m) \
do { \
- CHECK_MEMBER_OFFSET (s, m); \
- CHECK_MEMBER_SIZEOF (s, m); \
+ CHECK_MEMBER_OFFSET(s, m); \
+ CHECK_MEMBER_SIZEOF(s, m); \
} while (0)
#define CHECK_STRUCT(s) \
do { \
- COMMENT ("Checks for struct "#s); \
- CHECK_VALUE (sizeof (struct s)); \
+ COMMENT("Checks for struct "#s); \
+ CHECK_VALUE((int)sizeof(struct s)); \
} while (0)