Explorar o código

More verbose error message when reopening out of core file

Samuel Thibault %!s(int64=7) %!d(string=hai) anos
pai
achega
88f46dbc6b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/disk_ops/unistd/disk_unistd_global.c

+ 1 - 1
src/core/disk_ops/unistd/disk_unistd_global.c

@@ -177,7 +177,7 @@ static void _starpu_unistd_init(struct starpu_unistd_global_obj *obj, int descri
 static int _starpu_unistd_reopen(struct starpu_unistd_global_obj *obj)
 {
 	int id = open(obj->path, obj->flags);
-	STARPU_ASSERT(id >= 0);
+	STARPU_ASSERT_MSG(id >= 0, "Reopening file %s failed: errno %d", obj->path, errno);
 	return id;
 }