From patchwork Fri May 12 12:12:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Busch-George X-Patchwork-Id: 761600 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wPTRJ3KF8z9s7j for ; Fri, 12 May 2017 22:14:03 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="lYI+R0dU"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id: Date:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=eVwITPmWqdt1xl9A6oA2iwoEk5kwClP2uSjp5XH/zRY=; b=lYI+R0dUMwX3gP DiYVgEVccBzZGTDQhUh9v0VgNae47sQUho26PvEsa8Rhc08vuF4ajE8+NKlmQ+bp4ZdQSuhG7qpyc MgOR3PWtwfg1xFqwbNyehVkQI3eN98VSzdAzhAs++yO7KYBW9T7KqH2u37ei8/ix8FKIAxcLI8wnK V8G/Wp0RgQgMlDh0lwJ5uhVyDV35Pha0le9mWrPRuEDbcblS4HH2VEI723xzVIqHxTbCawaJ1l6xU ug1cx9+mPoLXkUCXVQmgEj5cb8gJz56HdTchNtpRaXQ37aN2aGMAnFfne60lD2rJw2lNYX+R+r1/q tfF4/xj4Qqs28jPzN1Pg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d99SH-0006oH-I7; Fri, 12 May 2017 12:13:57 +0000 Received: from smtp3.goneo.de ([85.220.129.37]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d99SD-0006mh-91 for lede-dev@lists.infradead.org; Fri, 12 May 2017 12:13:55 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp3.goneo.de (Postfix) with ESMTP id 76A5423F00D; Fri, 12 May 2017 14:13:25 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -1.69 X-Spam-Level: X-Spam-Status: No, score=-1.69 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.689, BAYES_20=-0.001] autolearn=unavailable Received: from smtp3.goneo.de ([127.0.0.1]) by localhost (smtp3.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n9jPUdql4CmI; Fri, 12 May 2017 14:12:47 +0200 (CEST) Received: from brot.fritz.box (ip-88-153-200-96.hsi04.unitymediagroup.de [88.153.200.96]) by smtp3.goneo.de (Postfix) with ESMTPSA id 3F76423FF5D; Fri, 12 May 2017 14:12:47 +0200 (CEST) From: leon@georgemail.eu To: lede-dev@lists.infradead.org Date: Fri, 12 May 2017 14:12:34 +0200 Message-Id: <20170512121234.20370-1-leon@georgemail.eu> X-Mailer: git-send-email 2.12.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170512_051353_484711_3D7D2FC1 X-CRM114-Status: UNSURE ( 6.96 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [85.220.129.37 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Subject: [LEDE-DEV] [PATCH] display two hex digits per octet in syslog X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Leon M. George" MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: "Leon M. George" Signed-off-by: Leon M. George --- src/dhcpv4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dhcpv4.c b/src/dhcpv4.c index 81e537d..21d94f2 100644 --- a/src/dhcpv4.c +++ b/src/dhcpv4.c @@ -378,7 +378,7 @@ static void handle_dhcpv4(void *addr, void *data, size_t len, */ } - syslog(LOG_WARNING, "received %s from %x:%x:%x:%x:%x:%x", + syslog(LOG_WARNING, "received %s from %02x:%02x:%02x:%02x:%02x:%02x", dhcpv4_msg_to_string(reqmsg), req->chaddr[0],req->chaddr[1],req->chaddr[2], req->chaddr[3],req->chaddr[4],req->chaddr[5]); @@ -502,7 +502,7 @@ static void handle_dhcpv4(void *addr, void *data, size_t len, * reply is send directly to IP, * MAC is assumed to be the same as the request */ - syslog(LOG_WARNING, "sending %s to %x:%x:%x:%x:%x:%x - %s", + syslog(LOG_WARNING, "sending %s to %02x:%02x:%02x:%02x:%02x:%02x - %s", dhcpv4_msg_to_string(msg), req->chaddr[0],req->chaddr[1],req->chaddr[2], req->chaddr[3],req->chaddr[4],req->chaddr[5],