Changeset 224 for branches/samba-3.3.x/source/smbd/oplock.c
- Timestamp:
- May 24, 2009, 7:55:48 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/smbd/oplock.c
r206 r224 413 413 message_to_share_mode_entry(&msg, (char *)data->data); 414 414 415 DEBUG(10, ("Got oplock async level 2 break message from pid %d: %s/%lu\n", 416 (int)procid_to_pid(&src), file_id_string_tos(&msg.id), msg.share_file_id)); 415 DEBUG(10, ("Got oplock async level 2 break message from pid %s: " 416 "%s/%lu\n", procid_str(debug_ctx(), &src), 417 file_id_string_tos(&msg.id), msg.share_file_id)); 417 418 418 419 fsp = initial_break_processing(msg.id, msg.share_file_id); … … 456 457 457 458 /* Need to wait before sending a break message if we sent ourselves this message. */ 458 if (procid_ to_pid(&src) == sys_getpid()) {459 if (procid_is_me(&src)) { 459 460 wait_before_sending_break(); 460 461 } … … 508 509 message_to_share_mode_entry(&msg, (char *)data->data); 509 510 510 DEBUG(10, ("Got oplock break message from pid %d: %s/%lu\n", 511 (int)procid_to_pid(&src), file_id_string_tos(&msg.id), msg.share_file_id)); 511 DEBUG(10, ("Got oplock break message from pid %s: %s/%lu\n", 512 procid_str(debug_ctx(), &src), file_id_string_tos(&msg.id), 513 msg.share_file_id)); 512 514 513 515 fsp = initial_break_processing(msg.id, msg.share_file_id); … … 563 565 564 566 /* Need to wait before sending a break message if we sent ourselves this message. */ 565 if (procid_ to_pid(&src) == sys_getpid()) {567 if (procid_is_me(&src)) { 566 568 wait_before_sending_break(); 567 569 } … … 622 624 file_id = (unsigned long)IVAL(data->data, 16); 623 625 624 DEBUG(10, ("Got kernel oplock break message from pid % d: %s/%u\n",625 (int)procid_to_pid(&src), file_id_string_tos(&id),626 DEBUG(10, ("Got kernel oplock break message from pid %s: %s/%u\n", 627 procid_str(debug_ctx(), &src), file_id_string_tos(&id), 626 628 (unsigned int)file_id)); 627 629 … … 714 716 message_to_share_mode_entry(&msg, (char *)data->data); 715 717 716 DEBUG(10, ("Got oplock break response from pid % d: %s/%lu mid %u\n",717 (int)procid_to_pid(&src), file_id_string_tos(&msg.id), msg.share_file_id,718 (unsigned int)msg.op_mid));718 DEBUG(10, ("Got oplock break response from pid %s: %s/%lu mid %u\n", 719 procid_str(debug_ctx(), &src), file_id_string_tos(&msg.id), 720 msg.share_file_id, (unsigned int)msg.op_mid)); 719 721 720 722 /* Here's the hack from open.c, store the mid in the 'port' field */ … … 743 745 message_to_share_mode_entry(&msg, (char *)data->data); 744 746 745 DEBUG(10, ("Got open retry msg from pid % d: %s mid %u\n",746 (int)procid_to_pid(&src), file_id_string_tos(&msg.id),747 DEBUG(10, ("Got open retry msg from pid %s: %s mid %u\n", 748 procid_str(debug_ctx(), &src), file_id_string_tos(&msg.id), 747 749 (unsigned int)msg.op_mid)); 748 750
Note:
See TracChangeset
for help on using the changeset viewer.