FreeBSD/sys/dev/isci/scil/scic_sds_remote_device.c
/**
 *  This is a private method for emitting log messages related to events reported
 *  to the remote device from the controller object.
 *
 *  @param [in] this_device This is the device object that is receiving the
 *         event.
 *  @param [in] event_code The event code to process.
 *
 *  @return None
 */
This is a private method for emitting log messages related to events reported
to the remote device from the controller object.

@param [in] this_device This is the device object that is receiving the
event.
@param [in] event_code The event code to process.

@return None
This is a private method for emitting log messages related to events reported to the remote device from the controller object . @param [ in ] this_device This is the device object that is receiving the event . @param [ in ] event_code The event code to process . @return None
static void scic_sds_emit_event_log_message(
   SCIC_SDS_REMOTE_DEVICE_T * this_device,
   U32                        event_code,
   char *                     message_guts,
   BOOL                       ready_state
   )
{
   SCIC_LOG_WARNING((
      sci_base_object_get_logger(this_device),
      SCIC_LOG_OBJECT_SSP_REMOTE_TARGET |
      SCIC_LOG_OBJECT_SMP_REMOTE_TARGET |
      SCIC_LOG_OBJECT_STP_REMOTE_TARGET,
      "SCIC Remote device 0x%x (state %d) received %s %x while in the %sready %s%d\n",
      this_device,
      sci_base_state_machine_get_state(
               scic_sds_remote_device_get_base_state_machine(this_device)),
      message_guts, event_code,
      (ready_state)
        ? ""
        : "not ",
      (this_device->has_ready_substate_machine)
        ? "substate "
        : "",
      (this_device->has_ready_substate_machine)
        ? sci_base_state_machine_get_state(&this_device->ready_substate_machine)
        : 0
   ));
}
static void scic_sds_emit_event_log_message ( SCIC_SDS_REMOTE_DEVICE_T * this_device , U32 event_code , char * message_guts , BOOL ready_state ) { SCIC_LOG_WARNING ( ( sci_base_object_get_logger ( this_device ) , SCIC_LOG_OBJECT_SSP_REMOTE_TARGET | SCIC_LOG_OBJECT_SMP_REMOTE_TARGET | SCIC_LOG_OBJECT_STP_REMOTE_TARGET , " \n " , this_device , sci_base_state_machine_get_state ( scic_sds_remote_device_get_base_state_machine ( this_device ) ) , message_guts , event_code , ( ready_state ) ? " " : " " , ( this_device -> has_ready_substate_machine ) ? " " : " " , ( this_device -> has_ready_substate_machine ) ? sci_base_state_machine_get_state ( & this_device -> ready_substate_machine ) : 0 ) ) ; }
This is a private method for emitting log messages related to events reported
  to the remote device from the controller object.
This is a private method for emitting log messages related to events reported to the remote device from the controller object .