Changeset cf14910be4b9941247f5aebb8d901455532553dc
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r0b19ab
|
rcf1491
|
|
| 243 | 243 | |
| 244 | 244 | 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)"); |
| 248 | 248 | } |
| 249 | 249 | |
| … |
… |
|
| 254 | 254 | else |
| 255 | 255 | { if((code&0x03)==0) |
| 256 | | printf(error, "%s", "OK\n"); |
| | 256 | sprintf(error, "%s", "OK\n"); |
| 257 | 257 | if(code&(1<<0)) |
| 258 | | printf(error, "%sUncorrectable Errors\n", prefix); |
| | 258 | sprintf(error, "%sUncorrectable Errors\n", prefix); |
| 259 | 259 | if(code&(1<<1)) |
| 260 | | printf(error, "%sCorrectable Errors\n", prefix); |
| 261 | | } |
| 262 | | } |
| | 260 | sprintf(error, "%sCorrectable Errors\n", prefix); |
| | 261 | } |
| | 262 | } |