From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtprelay0044.hostedemail.com ([216.40.44.44] helo=smtprelay.hostedemail.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dBlmW-0005vG-49 for linux-mtd@lists.infradead.org; Fri, 19 May 2017 17:33:41 +0000 Message-ID: <1495189568.31562.34.camel@perches.com> Subject: Re: [PATCH 04/29] printk-formats.txt: standardize document format From: Joe Perches To: Mauro Carvalho Chehab , Linux Doc Mailing List Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , linux-mtd@lists.infradead.org In-Reply-To: <6c973f1a04299e7f637949f717ea7f6c9777b0b4.1495157082.git.mchehab@s-opensource.com> References: <6c973f1a04299e7f637949f717ea7f6c9777b0b4.1495157082.git.mchehab@s-opensource.com> Content-Type: text/plain; charset="ISO-8859-1" Date: Fri, 19 May 2017 03:26:08 -0700 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2017-05-18 at 22:25 -0300, Mauro Carvalho Chehab wrote: > Each text file under Documentation follows a different > format. Some doesn't even have titles! > > Change its representation to follow the adopted standard, > using ReST markups for it to be parseable by Sphinx: > > - add a title for the document; > - add markups for section titles; > - move authorship to the beginning and use :Author:; > - use right markup for tables; > - mark literals and literal blocks. I think the .rst markup is far uglier to read as text and harder to modify for new additions to %p given column alignments. For instance below, but other than that, the .rst is easier to read. > diff --git a/Documentation/printk-formats.txt b/Documentation/printk-formats.txt [] > @@ -1,139 +1,180 @@ > -If variable is of Type, use printk format specifier: > ---------------------------------------------------------- > - int %d or %x > - unsigned int %u or %x > - long %ld or %lx > - unsigned long %lu or %lx > - long long %lld or %llx > - unsigned long long %llu or %llx > - size_t %zu or %zx > - ssize_t %zd or %zx > - s32 %d or %x > - u32 %u or %x > - s64 %lld or %llx > - u64 %llu or %llx [] > +======================= =========================== > +If variable is of Type use printk format specifier > +======================= =========================== > +``int`` ``%d or %x`` > +``unsigned int`` ``%u or %x`` > +``long`` ``%ld or %lx`` > +``unsigned long`` ``%lu or %lx`` > +``long long`` ``%lld or %llx`` > +``unsigned long long`` ``%llu or %llx`` > +``size_t`` ``%zu or %zx`` > +``ssize_t`` ``%zd or %zx`` > +``s32`` ``%d or %x`` > +``u32`` ``%u or %x`` > +``s64`` ``%lld or %llx`` > +``u64`` ``%llu or %llx`` > +======================= ===========================