Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1299054
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Andy Shevchenko <andriy.shevchenko@linux.intel.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 0/2] lib/vsprintf: introduce stricter rules for %p extensions |
| Date | Tue, 29 Dec 2015 17:50:02 +0100 |
| Message-ID | <qL5Dc-321-5@gated-at.bofh.it> (permalink) |
| X-Extloop1 | 1 |
| X-Ironport-Av | E=Sophos;i="5.20,496,1444719600"; d="scan'208";a="871287542" |
| X-Mailer | git-send-email 2.6.4 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 33 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Andy Shevchenko <andriy.shevchenko@linux.intel.com> |
| X-Original-Date | Tue, 29 Dec 2015 18:42:36 +0200 |
| X-Original-Message-ID | <1451407358-7041-1-git-send-email-andriy.shevchenko@linux.intel.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1299054 |
Show key headers only | View raw
Besides the code refactoring we introduce the following rules for %p extensions here. i.e: - fixed type extensions are always printed in hex format, prefixed by '0x', small letters, full field width on a running architecture (%pa[dp], %pNF) - fallback to %p based on different kernel configuration will be under the same rule set as for fixed types above (%pCn when COMMON_CLK=n, %p[FfSsB] when KALLSYMS=n) - fallback to %p of unimplemented extension will be under the same rule set as for fixed types above (%pN) Since v1: - address comments from Joe and Rasmums (might be not all of them) - add patch 2 - desribe in cover letter what is done besides refactoring Andy Shevchenko (2): lib/vsprintf: refactor duplicate code to special_hex_number() lib/vsprintf: factor out %pN[F] handler as netdev_bits() lib/vsprintf.c | 70 ++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 39 insertions(+), 31 deletions(-) -- 2.6.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH v2 0/2] lib/vsprintf: introduce stricter rules for %p extensions Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2015-12-29 17:50 +0100
csiph-web