Added dprintf() to be able to see which driver hangs on load

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33133 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2009-09-14 11:47:16 +00:00
parent f0bf38026a
commit 4f5ca99156

View File

@ -1305,6 +1305,8 @@ legacy_driver_add_preloaded(kernel_args* args)
pathStatus = imagePath.Append(image->name);
// try to add the driver
dprintf("devfs_add_preloaded_drivers: adding driver %s\n",
imagePath.Path());
status_t addStatus = pathStatus;
if (pathStatus == B_OK)
addStatus = add_driver(imagePath.Path(), image->id);