[Fai-commit] r4825 - people/michael/features/setup_harddisks_2/implementation/lib

mt at alioth.debian.org mt at alioth.debian.org
Fri Dec 14 22:29:30 UTC 2007


Author: mt
Date: 2007-12-14 22:29:30 +0000 (Fri, 14 Dec 2007)
New Revision: 4825

Modified:
   people/michael/features/setup_harddisks_2/implementation/lib/commands.pm
Log:
minor beautification: only print the debugging output on {create,tune}_options
if these are available


Modified: people/michael/features/setup_harddisks_2/implementation/lib/commands.pm
===================================================================
--- people/michael/features/setup_harddisks_2/implementation/lib/commands.pm	2007-12-14 15:52:20 UTC (rev 4824)
+++ people/michael/features/setup_harddisks_2/implementation/lib/commands.pm	2007-12-14 22:29:30 UTC (rev 4825)
@@ -57,7 +57,8 @@
   my ( $create_options ) = $partition->{fs_options} =~ m/createopts="([^"]+)"/;
   my ( $tune_options )   = $partition->{fs_options} =~ m/tuneopts="([^"]+)"/;
   $create_options = $partition->{fs_options} unless $create_options;
-  print STDERR "create_options: $create_options tune_options: $tune_options\n" if $FAI::debug;
+  print "create_options: $create_options\n" if ( $FAI::debug && $create_options );
+  print "tune_options: $tune_options\n" if ( $FAI::debug && $tune_options );
 
   # create the file system with options
   my $create_tool = "mkfs.$fs";




More information about the Fai-commit mailing list