Index: uspace/drv/test/test3/test3.c
===================================================================
--- uspace/drv/test/test3/test3.c	(revision cecba66ea48d60cfa59865e98aeda663808e42c7)
+++ uspace/drv/test/test3/test3.c	(revision f04b5b3bf75e5d5987007f7a9d2cdd7d90bd5978)
@@ -71,7 +71,7 @@
 	char *fun_name = NULL;
 	
-	rc = asprintf(&fun_name, "%s%zu", base_name, index);
-	if (rc < 0) {
-		ddf_msg(LVL_ERROR, "Failed to format string: %s", str_error(rc));
+	if (asprintf(&fun_name, "%s%zu", base_name, index) < 0) {
+		ddf_msg(LVL_ERROR, "Failed to format string: No memory");
+		rc = ENOMEM;
 		goto leave;
 	}
@@ -161,7 +161,6 @@
 
 	for (i = 0; i < NUM_FUNCS; i++) {
-		rc = asprintf(&fun_name, "test3_%zu", i);
-		if (rc < 0) {
-			ddf_msg(LVL_ERROR, "Failed to format string: %s", str_error(rc));
+		if (asprintf(&fun_name, "test3_%zu", i) < 0) {
+			ddf_msg(LVL_ERROR, "Failed to format string: No memory");
 			return ENOMEM;
 		}
