diff --git a/pdf.c b/pdf.c
index dc689d1f78a73a4fbbeeef9acdb353a2aba10300..0001ec535be4a16be6758671b3421f0a71887c0a 100644
--- a/pdf.c
+++ b/pdf.c
@@ -969,7 +969,7 @@ act_xrstment(const HParseResult *p, void *u)
 		xr->o.idx = H_FIELD_UINT(2);
 		break;
 	default:
-		log_message(0, "unknown entry type %d in xref stream",
+		log_message(0, "unknown entry type %d in xref stream\n",
 		    xr->type);
 		/* NB: this is allowed and treated as null by resolve() */
 	}