Change dump_image API
This commit is contained in:
1 parent
10217cd331
commit
3f96851407
4 files changed
+7
-7
No files matched your search
+4
-4
@@ -188,17 +188,17 @@ int dev_flash_image(struct device_info * dev, struct image * image) {
|
||||
|
||||
}
|
||||
|
||||
struct image * dev_dump_image(struct device_info * dev, enum image_type image) {
|
||||
int dev_dump_image(struct device_info * dev, enum image_type image, const char * file) {
|
||||
|
||||
if ( dev->method == METHOD_LOCAL )
|
||||
return local_dump_image(image);
|
||||
return local_dump_image(image, file);
|
||||
|
||||
if ( dev->method == METHOD_USB ) {
|
||||
ERROR("Dump image via USB is not supported");
|
||||
return NULL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return -1;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user