Exit with error if no device was found

This commit is contained in:
Oliver Smith 2022-05-16 10:45:22 +02:00
parent 1bf48da7a8
commit 313de8d95e
1 changed files with 2 additions and 0 deletions

View File

@ -498,6 +498,8 @@ static void iterate_devices(struct pci_access *pa, char *filter_id, char *filter
if (new_mac)
exit(0);
}
die("no matching device found!\n");
}
int main(int argc, char **argv)