Ignore:
Timestamp:
May 24, 2009, 7:55:48 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 branch to 3.3.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/smbd/oplock.c

    r206 r224  
    413413        message_to_share_mode_entry(&msg, (char *)data->data);
    414414
    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));
    417418
    418419        fsp = initial_break_processing(msg.id, msg.share_file_id);
     
    456457
    457458        /* 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)) {
    459460                wait_before_sending_break();
    460461        }
     
    508509        message_to_share_mode_entry(&msg, (char *)data->data);
    509510
    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));
    512514
    513515        fsp = initial_break_processing(msg.id, msg.share_file_id);
     
    563565
    564566        /* 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)) {
    566568                wait_before_sending_break();
    567569        }
     
    622624        file_id = (unsigned long)IVAL(data->data, 16);
    623625
    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),
    626628                   (unsigned int)file_id));
    627629
     
    714716        message_to_share_mode_entry(&msg, (char *)data->data);
    715717
    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));
    719721
    720722        /* Here's the hack from open.c, store the mid in the 'port' field */
     
    743745        message_to_share_mode_entry(&msg, (char *)data->data);
    744746
    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),
    747749                   (unsigned int)msg.op_mid));
    748750
Note: See TracChangeset for help on using the changeset viewer.