[BACK]Return to post_dmesg_to_nycbug CVS log [TXT][DIR] Up to [local] / openbsd / update_openbsd

Diff for /openbsd/update_openbsd/post_dmesg_to_nycbug between version 1.7 and 1.10

version 1.7, 2016/10/04 06:26:34 version 1.10, 2017/10/01 03:45:24
Line 28 
Line 28 
   
 my $description = "@ARGV";  my $description = "@ARGV";
   
 while ( @sysctls and not $description ) {  unless ($description) {
     $description = sysctl @{ shift @sysctls };      while ( @sysctls and not $description ) {
 }          $description = sysctl @{ shift @sysctls };
       }
   
 if (my $version = sysctl qw( kern.version )) {      if (my $version = sysctl qw( kern.version )) {
     $version =~ s/\)\K.*//;          my $machine = sysctl qw( hw.machine );
     $description = "$version on $description";          $version =~ s/\)\K.*/ $machine/;
           $description = "$version on $description";
       }
 }  }
   
 print "About to post '$description', OK? ";  print "'$description'\nAbout to post, OK? ";
 readline STDIN;  readline STDIN;
   
 open my $dm, '<', '/var/run/dmesg.boot' or die $!;  open my $dm, '<', '/var/run/dmesg.boot' or die $!;
Line 61 
Line 64 
 say $res->{success}  say $res->{success}
     ? 'Sent dmesg'      ? 'Sent dmesg'
     : "Unable to send dmesg: $res->{status} $res->{reason}";      : "Unable to send dmesg: $res->{status} $res->{reason}";
   
   say $res->{content};

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.10

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>