Changeset cf14910be4b9941247f5aebb8d901455532553dc

Show
Ignore:
Timestamp:
10/30/09 19:15:53 (2 years ago)
Author:
Erwan Velu <erwan.velu@…>
Children:
a1d88954b2913bb6b992077accad6b23c6767abe
Parents:
d4849a0057a73ac8041e7935dc5ed1598111dcc9
git-committer:
Erwan Velu <erwan.velu@free.fr> / 2009-10-30T20:15:53Z+0100
Message:

hdt: Fixing {s}printf typo

Impact: Avoid some unwanted printf

Some dmi calls were using printf instead of sprintf.
This solves ticket #11

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • com32/gpllib/dmi/dmi_memory.c

    r0b19ab rcf1491  
    243243 
    244244        if(code&0x80) 
    245                 printf(size, "%s", "(Double-bank Connection)"); 
    246         else 
    247                 printf(size, "%s", "(Single-bank Connection)"); 
     245                sprintf(size, "%s", "(Double-bank Connection)"); 
     246        else 
     247                sprintf(size, "%s", "(Single-bank Connection)"); 
    248248} 
    249249 
     
    254254        else 
    255255        {       if((code&0x03)==0) 
    256                         printf(error, "%s", "OK\n"); 
     256                        sprintf(error, "%s", "OK\n"); 
    257257                if(code&(1<<0)) 
    258                         printf(error, "%sUncorrectable Errors\n", prefix); 
     258                        sprintf(error, "%sUncorrectable Errors\n", prefix); 
    259259                if(code&(1<<1)) 
    260                         printf(error, "%sCorrectable Errors\n", prefix); 
    261         } 
    262 } 
     260                        sprintf(error, "%sCorrectable Errors\n", prefix); 
     261        } 
     262}