Changeset be72045 in rtems


Ignore:
Timestamp:
Jun 12, 2009, 3:06:33 AM (12 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 5, master
Children:
e4a3d93
Parents:
0c871423
Message:

2009-06-12 Chris Johns <chrisj@…>

  • ide/ide.c: Format the data output in DEBUG mode.
Location:
c/src/lib/libbsp/i386/pc386
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/ChangeLog

    r0c871423 rbe72045  
     12009-06-12      Chris Johns <chrisj@rtems.org> 
     2
     3        * ide/ide.c: Format the data output in DEBUG mode.
     4
    152009-05-30      Chris Johns <chrisj@rtems.org>
    26
  • c/src/lib/libbsp/i386/pc386/ide/ide.c

    r0c871423 rbe72045  
    361361  uint16_t   *lbuf = (uint16_t*)
    362362    ((uint8_t*)(bufs[(*cbuf)].buffer) + (*pos));
    363 
     363#ifdef DEBUG_OUT
     364  int i32 = 0;
     365#endif
    364366  while (cnt < block_size)
    365367  {
     
    377379
    378380#ifdef DEBUG_OUT
    379     printk("0x%x ",*lbuf);
    380 #endif
    381 
     381    printk("%04x ",*lbuf);
     382    i32++;
     383    if (i32 >= 16)
     384    {
     385      printk("\n");
     386      i32 = 0;
     387    }
     388#endif
     389   
    382390    lbuf++;
    383391    cnt    += sizeof(*lbuf);
Note: See TracChangeset for help on using the changeset viewer.