Index: common/printf/printf_core.c
===================================================================
--- common/printf/printf_core.c	(revision 97f6b71fdbc9535de15d3b4ae8be377be2040150)
+++ common/printf/printf_core.c	(revision 65bf08437fcd848d357a9e3d4004b178ef9adafd)
@@ -201,15 +201,10 @@
     size_t *written_bytes)
 {
-	int written = ps->str_write(buf, n, ps->data);
-	if (written < 0)
-		return EIO;
+	errno_t rc = ps->write(buf, n, ps->data);
+	if (rc != EOK)
+		return rc;
+
 	_saturating_add(written_bytes, n);
 	return EOK;
-
-	#if 0
-	errno_t rc = ps->write(buf, &n, ps->data);
-	_saturating_add(written_bytes, n);
-	return rc;
-	#endif
 }
 
@@ -1466,6 +1461,4 @@
 
 		rc = _format_number(number, width, precision, base, flags, ps, &counter);
-		if (rc != EOK)
-			continue;
 	}
 
