Ignore:
Timestamp:
May 23, 2016, 5:24:34 AM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
c16e54a
Parents:
24d0ee57
git-author:
Chris Johns <chrisj@…> (05/23/16 05:24:34)
git-committer:
Chris Johns <chrisj@…> (05/25/16 05:47:34)
Message:

i386/pc386: Fix printk formatting warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/shared/comm/tty_drv.c

    r24d0ee57 r1503c1c3  
    1717
    1818
     19#include <inttypes.h>
    1920#include <stdio.h>
    2021#include <stdlib.h>
     
    263264  }
    264265
    265   printk("Setting attributes, port=%X, baud=%d, linemode = 0x%02x\n", port, baud, databits | parity | stopbits );
     266  printk("Setting attributes, port=%X, baud=%" PRId32 ", linemode = 0x%02" PRIx32 "\n",
     267         port, baud, databits | parity | stopbits );
    266268  BSP_uart_set_attributes(port, baud, databits, parity, stopbits);
    267269  return 0;
Note: See TracChangeset for help on using the changeset viewer.