Added enum DEVICE_COUNT and IMAGE_COUNT, Added function device_to_long_string

This commit is contained in:
Pali Rohár committed 2012-08-08 18:10:53 +02:00
1 parent dd2c6b7f18
commit b582869208
5 files changed
+23 -3

No files matched your search

+1 -1
View File
@@ -467,7 +467,7 @@ enum image_type image_type_from_string(const char * type) {
const char * image_type_to_string(enum image_type type) {
if ( type > sizeof(image_types) )
if ( type > sizeof(image_types)/sizeof(image_types[0]) )
return NULL;
return image_types[type];