[PATCH] rtems/inttypes: Clarify hexadecimal in comments

Joel Sherrill joel at rtems.org
Wed Nov 29 15:30:49 UTC 2017


Thanks for the patch. It is awesome to get patches that show someone
is looking at the details and cares enough to submit a patch. I wish
more people submitted patches for the small things.

Committed! Much thanks.

--joel

On Wed, Nov 29, 2017 at 7:52 AM, Martin Erik Werner <
martinerikwerner.aac at gmail.com> wrote:

> Update comments to reflect that PRIxblksize_t PRIxblkcnt_t is
> hexadecimal, not decimal.
>
> Signed-off-by: Martin Erik Werner <martin.werner at aacmicrotec.com>
> ---
>  cpukit/include/rtems/inttypes.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/cpukit/include/rtems/inttypes.h b/cpukit/include/rtems/
> inttypes.h
> index cc8538df19..a8e725dcbf 100644
> --- a/cpukit/include/rtems/inttypes.h
> +++ b/cpukit/include/rtems/inttypes.h
> @@ -70,7 +70,7 @@ extern "C" {
>  #error "PRIdtime_t: unsupported size of time_t"
>  #endif
>
> -/** Helper macro to print "blksize_t" in decimal */
> +/** Helper macro to print "blksize_t" in hexadecimal */
>  #if __RTEMS_SIZEOF_BLKSIZE_T__ == 8
>  #define PRIxblksize_t PRIx64
>  #elif __RTEMS_SIZEOF_BLKSIZE_T__ == 4
> @@ -81,7 +81,7 @@ extern "C" {
>  #define PRIxblksize_t "lx"
>  #endif
>
> -/** Helper macro to print "blkcnt_t" in decimal */
> +/** Helper macro to print "blkcnt_t" in hexadecimal */
>  #if __RTEMS_SIZEOF_BLKCNT_T__ == 8
>  #define PRIxblkcnt_t PRIx64
>  #elif __RTEMS_SIZEOF_BLKCNT_T__ == 4
> --
> 2.11.0
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20171129/7eba39a9/attachment.html>


More information about the devel mailing list