From patchwork Wed Apr 17 12:08:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karl Beldan X-Patchwork-Id: 2453531 Return-Path: X-Original-To: patchwork-linux-wireless@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 892F63FD8C for ; Wed, 17 Apr 2013 12:12:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966124Ab3DQMMl (ORCPT ); Wed, 17 Apr 2013 08:12:41 -0400 Received: from mail-we0-f172.google.com ([74.125.82.172]:53560 "EHLO mail-we0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965961Ab3DQMMk (ORCPT ); Wed, 17 Apr 2013 08:12:40 -0400 Received: by mail-we0-f172.google.com with SMTP id r3so1137200wey.31 for ; Wed, 17 Apr 2013 05:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=ukdjG9VZlxdBkjItPatsw+IYxCfGNKPZR4GM/GleSy8=; b=FA4QzZiAFTDh2swZcUo/Lqe3sddyea2oTIYAOrIvRaJhb8cLQuzwyLYjsl29CMseGP gXfpvu5I7JqnNB+jSpHCgKB3L7itBVR9+3GkxAFFyRDZzebMdbHPyQhFAn5zX6wZUk5c sEPLGY9vTS2SFWup1HSM5j01jjMZMSMuhlfax8w4qTDaS5M4IwAcf3IYm6LN/L0Nyirv 8aAeG3a+P1WeUHp82W2DXLIpSfR9J6LpXRb3kQWsxnOvPCJJcCMr+5sCmv6qlg4x82SC Zx6OIhsQm30BHyymjC9eogftcfCVDepf1Dx7xgX4yx0isMShD2okoPIo9F4z5r8XqdmK sLHA== X-Received: by 10.180.98.198 with SMTP id ek6mr10533215wib.7.1366200759680; Wed, 17 Apr 2013 05:12:39 -0700 (PDT) Received: from magnum.frso.rivierawaves.com (vpn.rivierawaves.com. [91.151.119.162]) by mx.google.com with ESMTPS id ek4sm25081782wib.11.2013.04.17.05.12.38 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Apr 2013 05:12:38 -0700 (PDT) From: Karl Beldan To: Johannes Berg Cc: linux-wireless , Karl Beldan , Karl Beldan , Felix Fietkau Subject: [PATCH] mac80211: cosmetics for minstrel_debugfs Date: Wed, 17 Apr 2013 14:08:26 +0200 Message-Id: <1366200506-23584-1-git-send-email-karl.beldan@gmail.com> X-Mailer: git-send-email 1.8.2 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Karl Beldan This changes the minstrel stats ouput from: rate throughput ewma prob this prob this succ/attempt success attempts BCD 6 0.0 0.0 0.0 0( 0) 0 0 to: rate throughput ewma prob this prob this succ/attempt success attempts BCD 6 0.0 0.0 0.0 0( 0) 0 0 Signed-off-by: Karl Beldan Acked-by: Felix Fietkau --- net/mac80211/rc80211_minstrel_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/mac80211/rc80211_minstrel_debugfs.c b/net/mac80211/rc80211_minstrel_debugfs.c index d104834..fd0b9ca 100644 --- a/net/mac80211/rc80211_minstrel_debugfs.c +++ b/net/mac80211/rc80211_minstrel_debugfs.c @@ -68,7 +68,7 @@ minstrel_stats_open(struct inode *inode, struct file *file) file->private_data = ms; p = ms->buf; - p += sprintf(p, "rate throughput ewma prob this prob " + p += sprintf(p, "rate throughput ewma prob this prob " "this succ/attempt success attempts\n"); for (i = 0; i < mi->n_rates; i++) { struct minstrel_rate *mr = &mi->r[i]; @@ -86,7 +86,7 @@ minstrel_stats_open(struct inode *inode, struct file *file) eprob = MINSTREL_TRUNC(mr->probability * 1000); p += sprintf(p, " %6u.%1u %6u.%1u %6u.%1u " - "%3u(%3u) %8llu %8llu\n", + " %3u(%3u) %8llu %8llu\n", tp / 10, tp % 10, eprob / 10, eprob % 10, prob / 10, prob % 10,