From 5702f13f2689990b9f1d8bcddf429d3729cafefc Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 19 Aug 2005 07:36:02 +0000 Subject: [PATCH] Branch HEAD Quiet compiler warnings on x86_64. --- lnet/utils/portals.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lnet/utils/portals.c b/lnet/utils/portals.c index a9f2e35..692342f 100644 --- a/lnet/utils/portals.c +++ b/lnet/utils/portals.c @@ -410,7 +410,8 @@ __u64 ptl_nid2u64(ptl_nid_t nid) case 4: return ((__u32)nid); default: - fprintf(stderr, "Unexpected sizeof(ptl_nid_t) == %u\n", sizeof(nid)); + fprintf(stderr, "Unexpected sizeof(ptl_nid_t) == %u\n", + (int)sizeof(nid)); abort(); /* notreached */ return (-1); @@ -1644,7 +1645,7 @@ lwt_control(int enable, int clear) } static int -lwt_snapshot(cycles_t *now, int *ncpu, int *totalsize, +lwt_snapshot(cycles_t *now, int *ncpu, int *totalsize, lwt_event_t *events, int size) { struct portal_ioctl_data data; @@ -1665,7 +1666,7 @@ lwt_snapshot(cycles_t *now, int *ncpu, int *totalsize, if (data.ioc_nid2 != sizeof(lwt_event_t) || data.ioc_nid3 != offsetof(lwt_event_t, lwte_where)) { fprintf(stderr,"kernel/user LWT event mismatch %d(%d),%d(%d)\n", - (int)data.ioc_nid2, sizeof(lwt_event_t), + (int)data.ioc_nid2, (int)sizeof(lwt_event_t), (int)data.ioc_nid3, (int)offsetof(lwt_event_t, lwte_where)); return (-1); -- 1.8.3.1