@@ -734,9 +734,8 @@ static struct bio *bio_chain_clone(struct bio **old, struct bio **next,
734734 * split_bio will BUG_ON if this is not the case
735735 */
736736 dout ("bio_chain_clone split! total=%d remaining=%d"
737- "bi_size=%d\n" ,
738- (int )total , (int )len - total ,
739- (int )old_chain -> bi_size );
737+ "bi_size=%u\n" ,
738+ total , len - total , old_chain -> bi_size );
740739
741740 /* split the bio. We'll release it either in the next
742741 call, or it will have to be released outside */
@@ -816,8 +815,8 @@ static void rbd_coll_end_req_index(struct request *rq,
816815 struct request_queue * q ;
817816 int min , max , i ;
818817
819- dout ("rbd_coll_end_req_index %p index %d ret %d len %lld \n" ,
820- coll , index , ret , len );
818+ dout ("rbd_coll_end_req_index %p index %d ret %d len %llu \n" ,
819+ coll , index , ret , ( unsigned long long ) len );
821820
822821 if (!rq )
823822 return ;
@@ -894,8 +893,8 @@ static int rbd_do_request(struct request *rq,
894893 req_data -> coll_index = coll_index ;
895894 }
896895
897- dout ("rbd_do_request object_name=%s ofs=%lld len=%lld \n" ,
898- object_name , len , ofs );
896+ dout ("rbd_do_request object_name=%s ofs=%llu len=%llu \n" , object_name ,
897+ ( unsigned long long ) ofs , ( unsigned long long ) len );
899898
900899 osdc = & rbd_dev -> rbd_client -> client -> osdc ;
901900 req = ceph_osdc_alloc_request (osdc , flags , snapc , ops ,
@@ -948,8 +947,9 @@ static int rbd_do_request(struct request *rq,
948947 ret = ceph_osdc_wait_request (osdc , req );
949948 if (ver )
950949 * ver = le64_to_cpu (req -> r_reassert_version .version );
951- dout ("reassert_ver=%lld\n" ,
952- le64_to_cpu (req -> r_reassert_version .version ));
950+ dout ("reassert_ver=%llu\n" ,
951+ (unsigned long long )
952+ le64_to_cpu (req -> r_reassert_version .version ));
953953 ceph_osdc_put_request (req );
954954 }
955955 return ret ;
@@ -983,7 +983,8 @@ static void rbd_req_cb(struct ceph_osd_request *req, struct ceph_msg *msg)
983983 bytes = le64_to_cpu (op -> extent .length );
984984 read_op = (le16_to_cpu (op -> op ) == CEPH_OSD_OP_READ );
985985
986- dout ("rbd_req_cb bytes=%lld readop=%d rc=%d\n" , bytes , read_op , rc );
986+ dout ("rbd_req_cb bytes=%llu readop=%d rc=%d\n" ,
987+ (unsigned long long ) bytes , read_op , (int ) rc );
987988
988989 if (rc == - ENOENT && read_op ) {
989990 zero_bio_chain (req_data -> bio , 0 );
@@ -1217,8 +1218,9 @@ static void rbd_watch_cb(u64 ver, u64 notify_id, u8 opcode, void *data)
12171218 if (!rbd_dev )
12181219 return ;
12191220
1220- dout ("rbd_watch_cb %s notify_id=%lld opcode=%d\n" ,
1221- rbd_dev -> header_name , notify_id , (int ) opcode );
1221+ dout ("rbd_watch_cb %s notify_id=%llu opcode=%u\n" ,
1222+ rbd_dev -> header_name , (unsigned long long ) notify_id ,
1223+ (unsigned int ) opcode );
12221224 mutex_lock_nested (& ctl_mutex , SINGLE_DEPTH_NESTING );
12231225 rc = __rbd_refresh_header (rbd_dev );
12241226 hver = rbd_dev -> header .obj_version ;
@@ -1314,9 +1316,9 @@ static void rbd_notify_cb(u64 ver, u64 notify_id, u8 opcode, void *data)
13141316 if (!rbd_dev )
13151317 return ;
13161318
1317- dout ("rbd_notify_cb %s notify_id=%lld opcode=%d \n" ,
1318- rbd_dev -> header_name ,
1319- notify_id , ( int )opcode );
1319+ dout ("rbd_notify_cb %s notify_id=%llu opcode=%u \n" ,
1320+ rbd_dev -> header_name , ( unsigned long long ) notify_id ,
1321+ ( unsigned int ) opcode );
13201322}
13211323
13221324/*
@@ -1437,7 +1439,8 @@ static void rbd_rq_fn(struct request_queue *q)
14371439 struct bio * bio ;
14381440 struct bio * rq_bio , * next_bio = NULL ;
14391441 bool do_write ;
1440- int size , op_size = 0 ;
1442+ unsigned int size ;
1443+ u64 op_size = 0 ;
14411444 u64 ofs ;
14421445 int num_segs , cur_seg = 0 ;
14431446 struct rbd_req_coll * coll ;
@@ -1484,7 +1487,7 @@ static void rbd_rq_fn(struct request_queue *q)
14841487
14851488 dout ("%s 0x%x bytes at 0x%llx\n" ,
14861489 do_write ? "write" : "read" ,
1487- size , blk_rq_pos (rq ) * SECTOR_SIZE );
1490+ size , ( unsigned long long ) blk_rq_pos (rq ) * SECTOR_SIZE );
14881491
14891492 num_segs = rbd_get_num_segments (& rbd_dev -> header , ofs , size );
14901493 coll = rbd_alloc_coll (num_segs );
@@ -1497,7 +1500,7 @@ static void rbd_rq_fn(struct request_queue *q)
14971500
14981501 do {
14991502 /* a bio clone to be passed down to OSD req */
1500- dout ("rq->bio->bi_vcnt=%d \n" , rq -> bio -> bi_vcnt );
1503+ dout ("rq->bio->bi_vcnt=%hu \n" , rq -> bio -> bi_vcnt );
15011504 op_size = rbd_get_segment (& rbd_dev -> header ,
15021505 rbd_dev -> header .object_prefix ,
15031506 ofs , size ,
@@ -1664,7 +1667,7 @@ static int rbd_header_add_snap(struct rbd_device *rbd_dev,
16641667
16651668 monc = & rbd_dev -> rbd_client -> client -> monc ;
16661669 ret = ceph_monc_create_snapid (monc , rbd_dev -> pool_id , & new_snapid );
1667- dout ("created snapid=%lld \n" , new_snapid );
1670+ dout ("created snapid=%llu \n" , ( unsigned long long ) new_snapid );
16681671 if (ret < 0 )
16691672 return ret ;
16701673
0 commit comments