[PATCH 1/9] libbsp/powerpc/./pci/detect_raven_bridge.c: Use inttypes.h to fix 1 warning.

Joel Sherrill joel at rtems.org
Mon Apr 10 14:53:36 UTC 2017


All of these patches look good to me. I will try to apply them today.

Thanks.

--joel

On Sat, Apr 8, 2017 at 6:30 AM, Cillian O'Donnell <cpodonnell8 at gmail.com>
wrote:

> ---
>  c/src/lib/libbsp/powerpc/shared/pci/detect_raven_bridge.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/c/src/lib/libbsp/powerpc/shared/pci/detect_raven_bridge.c
> b/c/src/lib/libbsp/powerpc/shared/pci/detect_raven_bridge.c
> index fc2127e..423dc6f 100644
> --- a/c/src/lib/libbsp/powerpc/shared/pci/detect_raven_bridge.c
> +++ b/c/src/lib/libbsp/powerpc/shared/pci/detect_raven_bridge.c
> @@ -1,5 +1,6 @@
>  #include <libcpu/io.h>
>  #include <libcpu/spr.h>
> +#include <inttypes.h>
>
>  #include <bsp.h>
>  #include <bsp/pci.h>
> @@ -149,7 +150,7 @@ void detect_host_bridge(void)
>    }
>    pci_read_config_dword(0, 0, 0, 0, &id0);
>  #ifdef SHOW_RAVEN_SETTINGS
> -  printk("idreg 0 = 0x%x\n",id0);
> +  printk("idreg 0 = 0x%" PRIu32 "\n",id0);
>  #endif
>    if((id0 == PCI_VENDOR_ID_MOTOROLA +
>        (PCI_DEVICE_ID_MOTOROLA_RAVEN<<16)) ||
> --
> 2.7.4
>
> _______________________________________________
> 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/20170410/2076c00d/attachment-0002.html>


More information about the devel mailing list