From: "f6bvp@free" <f6bvp@free.fr>
To: Thomas Osterried <thomas@x-berg.in-berlin.de>
Cc: linux-hams@vger.kernel.org, ralf@linux-mips.org
Subject: Re: [PATCH] ax25tools mheard : don't display empty records
Date: Wed, 07 Aug 2013 12:06:57 +0200 [thread overview]
Message-ID: <52021C41.4010506@free.fr> (raw)
In-Reply-To: <20130807081754.GE18314@x-berg.in-berlin.de>
Hello Thomas,
As you know mheard is a user application included in ax25tools package.
It is not part of Linux kernel.
Here is a diff of ax25tools/ax25/mheard.c
73 de Bernard, f6bvp
Index: ax25/mheard.c
===================================================================
--- ax25/mheard.c (révision 109)
+++ ax25/mheard.c (copie de travail)
@@ -68,7 +68,8 @@
call = ax25_ntoa(&pr->entry.from_call);
if ((s = strstr(call, "-0")) != NULL)
*s = '\0';
- printf("%-10s %-5s %5d %s\n",
+ if (pr->entry.count != 0)
+ printf("%-10s %-5s %5d %s\n",
call, pr->entry.portname,
pr->entry.count, lh);
break;
case 1:
@@ -91,7 +92,8 @@
}
if (pr->entry.ndigis >= 4)
strcat(buffer, ",...");
- printf("%-70s %-5s\n",
+ if (pr->entry.count != 0)
+ printf("%-70s %-5s\n",
buffer, pr->entry.portname);
break;
case 2:
@@ -102,14 +104,16 @@
call = ax25_ntoa(&pr->entry.from_call);
if ((s = strstr(call, "-0")) != NULL)
*s = '\0';
- printf("%-10s %-5s %5d %5d %5d %s %s\n",
+ if (pr->entry.count != 0)
+ printf("%-10s %-5s %5d %5d %5d %s %s\n",
call, pr->entry.portname,
pr->entry.iframes, pr->entry.sframes, pr->entry.uframes, fh, lh);
break;
case 3:
call = ax25_ntoa(&pr->entry.from_call);
if ((s = strstr(call, "-0")) != NULL)
*s = '\0';
- printf("%-10s %-5s %5d %5s ",
+ if (pr->entry.count != 0) {
+ printf("%-10s %-5s %5d %5s ",
call, pr->entry.portname,
pr->entry.count, types[pr->entry.type]);
if (pr->entry.mode & MHEARD_MODE_ARP)
printf(" ARP");
@@ -136,6 +140,7 @@
if (pr->entry.mode & MHEARD_MODE_UNKNOWN)
printf(" Unknown");
printf("\n");
+ }
break;
}
}
Le 07/08/2013 10:17, Thomas Osterried a écrit :
> Hello Bernard,
>
> please send us a diff for the official tree.
>
> vy 73,
> - Thomas dl9sau
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-hams" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-08-07 10:06 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-20 9:00 [PATCH 0/7] ROSE: Misc fixes Ralf Baechle
2011-07-20 0:21 ` [PATCH 2/7] NET: ROSE: Factor our common code from functions Ralf Baechle
2011-07-20 0:21 ` [PATCH 1/7] NET: ROSE: Fix race in SIOCRSSL2CALL ioctl accessing userspace Ralf Baechle
2011-07-20 0:37 ` [PATCH 3/7] NET: ROSE: Protect rose_callsign with a spinlock Ralf Baechle
2013-08-06 17:57 ` [PATCH] ax25tools mheard : don't display empty records f6bvp@free
2013-08-07 8:17 ` Thomas Osterried
2013-08-07 10:06 ` f6bvp@free [this message]
2013-08-09 8:10 ` Thomas Osterried
2011-07-20 8:11 ` [PATCH 4/7] NET: ROSE: Make neighbour->use atomic Ralf Baechle
2011-07-20 8:11 ` [PATCH 5/7] NET: ROSE: Make rose_neigh_no atomic Ralf Baechle
2011-07-20 18:09 ` [PATCH v2 " Ralf Baechle
2011-07-20 8:11 ` [PATCH 6/7] NET: ROSE: Move return statements hidden behind an if to their own line Ralf Baechle
2011-07-20 8:11 ` [PATCH 7/7] NET: ROSE: Fix formatting Ralf Baechle
2011-07-20 17:15 ` [PATCH 0/7] ROSE: Misc fixes Bernard, f6bvp
2011-07-20 17:59 ` Ralf Baechle DL5RB
2011-07-22 9:10 ` Bernard, f6bvp
2011-07-22 10:56 ` Ralf Baechle DL5RB
2011-07-22 16:12 ` f6bvp
2011-07-23 13:28 ` Ralf Baechle DL5RB
2011-07-29 22:32 ` f6bvp
2011-08-08 13:40 ` f6bvp
2011-08-08 14:06 ` Ralf Baechle
2011-08-08 15:33 ` f6bvp
2011-08-19 13:07 ` f6bvp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52021C41.4010506@free.fr \
--to=f6bvp@free.fr \
--cc=linux-hams@vger.kernel.org \
--cc=ralf@linux-mips.org \
--cc=thomas@x-berg.in-berlin.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox