OSDN Git Service

[libcalamares] Log the Python pre-script a little better
authorAdriaan de Groot <groot@kde.org>
Mon, 27 Sep 2021 11:18:12 +0000 (13:18 +0200)
committerAdriaan de Groot <groot@kde.org>
Mon, 27 Sep 2021 11:18:12 +0000 (13:18 +0200)
- Make clear that the @ is a string-location, and how long the
  pre-script is (although in practice, it will be either null
  and 0, or the values set in the loadmodule executable).

src/libcalamares/PythonJob.cpp

index 1a4683c..201f56a 100644 (file)
@@ -330,7 +330,8 @@ void
 PythonJob::setInjectedPreScript( const char* preScript )
 {
     s_preScript = preScript;
-    cDebug() << "Python pre-script set to" << Logger::Pointer( preScript );
+    cDebug() << "Python pre-script set to string" << Logger::Pointer( preScript ) << "length"
+             << ( preScript ? strlen( preScript ) : 0 );
 }
 
 }  // namespace Calamares