From: Heiko Carstens Subject: Re: [patch 08/11] zfcp: Add traces for state changes. Date: Thu, 27 Mar 2008 15:20:01 +0100 Message-ID: <20080327142001.GA4122@osiris.boeblingen.de.ibm.com> References: <20080327132154.826339000@de.ibm.com> <20080327133028.840759000@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20080327133028.840759000@de.ibm.com> Sender: linux-scsi-owner@vger.kernel.org List-Archive: List-Post: To: Christof Schmitt Cc: James Bottomley , linux-scsi@vger.kernel.org, linux-s390@vger.kernel.org, Martin Peschke List-ID: > - zfcp_erp_modify_adapter_status(adapter, > + zfcp_erp_modify_adapter_status(adapter, 24, 0, > ZFCP_STATUS_COMMON_OPEN, ZFCP_CLEAR); > } > > @@ -216,7 +216,7 @@ zfcp_erp_adapter_reopen_internal(struct > zfcp_get_busid_by_adapter(adapter)); > debug_text_event(adapter->erp_dbf, 5, "a_ro_f"); > /* ensure propagation of failed status to new devices */ > - zfcp_erp_adapter_failed(adapter); > + zfcp_erp_adapter_failed(adapter, 13, 0); 24, 13? I bet you made sure that these numbers fit the huge list.. and hopefully nobody will ever add anything in between. Why not just pass a string? This looks way too complicated and error-prone.