/* iwl_print_last_event_logs - Dump the newest # of event log to syslog  */
static void iwl_print_last_event_logs(struct iwl_priv *priv, u32 capacity, u32 num_wraps, u32 next_entry, u32 size, u32 mode)
/* iwl_print_last_event_logs - Dump the newest # of event log to syslog  */
static void iwl_print_last_event_logs(struct iwl_priv *priv, u32 capacity, u32 num_wraps, u32 next_entry, u32 size, u32 mode)
{
	if (num_wraps) {
		if (next_entry < size) {
			iwl_print_event_log(priv,
					capacity - (size - next_entry),
					size - next_entry, mode);
			iwl_print_event_log(priv, 0,
				    next_entry, mode);
		} else
			iwl_print_event_log(priv, next_entry - size,
				    size, mode);
	} else {
		if (next_entry < size)
			iwl_print_event_log(priv, 0, next_entry, mode);
		else
			iwl_print_event_log(priv, next_entry - size,
					    size, mode);
	}
}