Changeset 1357 for trunk/print.c
- Timestamp:
- Jun 26, 2011 10:45:35 PM (2 years ago)
- File:
-
- 1 edited
-
trunk/print.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/print.c
r1351 r1357 29 29 /* 30 30 * Return a string corresponding to the bustype parameter. 31 * Memory is obtained with malloc() and can be freed with free().31 * Memory is obtained with malloc() and must be freed with free() by the caller. 32 32 */ 33 33 char *flashbuses_to_text(enum chipbustype bustype) … … 81 81 int maxchiplen = strlen("Device") + 1; 82 82 const struct flashchip *f; 83 char *s; 83 84 84 85 for (f = flashchips; f->name != NULL; f++) { … … 153 154 for (i = 0; i < 10 - digits(f->total_size); i++) 154 155 msg_ginfo(" "); 155 msg_ginfo("%s\n", flashbuses_to_text(f->bustype)); 156 157 s = flashbuses_to_text(f->bustype); 158 msg_ginfo("%s\n", s); 159 free(s); 156 160 } 157 161 }
Note: See TracChangeset
for help on using the changeset viewer.
