From patchwork Wed Jul 25 10:39:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 1236201 X-Patchwork-Delegate: alexne@voltaire.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 2D8033FDFB for ; Wed, 25 Jul 2012 10:39:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755653Ab2GYKj6 (ORCPT ); Wed, 25 Jul 2012 06:39:58 -0400 Received: from mail-qc0-f174.google.com ([209.85.216.174]:52717 "EHLO mail-qc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755533Ab2GYKj6 (ORCPT ); Wed, 25 Jul 2012 06:39:58 -0400 Received: by mail-qc0-f174.google.com with SMTP id o28so293477qcr.19 for ; Wed, 25 Jul 2012 03:39:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=lFTeAdyjDi/JX4iJplA5HwxfL5lVmuuIbTVbJSL/Vhw=; b=JLnMtG+VAocPMR3chIPiUMMvFmf2XHvOILwhg2tRlwZYYpNptuMMfhGZ61YEJkFGmT uUrCupy5toMUZ6j6TaH2aL1Q79RXuAhUwKUCRCHOF50Jc40kLzC1L/W173RkwLZmij74 txQaVG5XIrD8X23D+6FsegZnSidbQ9g6CGxncS6iHFvecjK/QMBnBMQy9tZ82g/libiy ITAGk8RsAWBqgtA+GA75k6u09vEWV0Kz3pqKtOPDiocOwrCSBM5nEmrmKdQkEwgsQFQE 7sV6A1cxBRPdR3bfH6Fr494SDQrjUBR8fA0W46k/kywofqZgRiENo9m89znRPRr05rC2 aiWA== Received: by 10.229.137.148 with SMTP id w20mr10982159qct.24.1343212797830; Wed, 25 Jul 2012 03:39:57 -0700 (PDT) Received: from [192.168.1.102] (c-71-192-10-85.hsd1.ma.comcast.net. [71.192.10.85]) by mx.google.com with ESMTPS id et8sm16405956qab.9.2012.07.25.03.39.57 (version=SSLv3 cipher=OTHER); Wed, 25 Jul 2012 03:39:57 -0700 (PDT) Message-ID: <500FCCFC.9050700@dev.mellanox.co.il> Date: Wed, 25 Jul 2012 06:39:56 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Alex Netes CC: "linux-rdma (linux-rdma@vger.kernel.org)" Subject: [PATCH][TRIVIAL] opensm/osm_sa_inform_info.c: Fix some error log messages X-Gm-Message-State: ALoCoQkjP3oKfuXdxyUjbOqV4DUA1FbbbGeak8PNLgBKxDG82nSJ7wHJ/+6IeXhjzU9zKb3uZ3bk Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Make error numbers unique and make log message format consistent for error messages Signed-off-by: Hal Rosenstock --- -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/opensm/osm_sa_informinfo.c b/opensm/osm_sa_informinfo.c index ce37372..939adfb 100644 --- a/opensm/osm_sa_informinfo.c +++ b/opensm/osm_sa_informinfo.c @@ -428,7 +428,7 @@ static void infr_rcv_process_set_method(osm_sa_t * sa, IN osm_madw_t * p_madw) if (res != IB_SUCCESS) { cl_plock_release(sa->p_lock); - OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4308 " + OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4308: " "Subscribe Request from unknown LID: %u\n", cl_ntoh16(p_madw->mad_addr.dest_lid)); osm_sa_send_error(sa, p_madw, IB_SA_MAD_STATUS_REQ_INVALID); @@ -442,7 +442,7 @@ static void infr_rcv_process_set_method(osm_sa_t * sa, IN osm_madw_t * p_madw) if (p_recvd_inform_info->subscribe > 1) { cl_plock_release(sa->p_lock); - OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4308 " + OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 430A: " "Invalid subscribe: %d\n", p_recvd_inform_info->subscribe); osm_sa_send_error(sa, p_madw, IB_SA_MAD_STATUS_REQ_INVALID);