diff --git a/src/libcalamares/utils/CalamaresUtils.cpp b/src/libcalamares/utils/CalamaresUtils.cpp
index 4a8b1f528..8441218d2 100644
--- a/src/libcalamares/utils/CalamaresUtils.cpp
+++ b/src/libcalamares/utils/CalamaresUtils.cpp
@@ -62,7 +62,7 @@ isWritableDir( const QDir& dir )
     {
         if ( !dir.mkpath( "." ) )
         {
-            cerr << "warning: failed to create " << qPrintable( path ) << endl;
+            cerr << "warning: failed to create " << qPrintable( path ) << '\n';
             return false;
         }
         return true;