Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Rousse authored and Guillaume Rousse committed Mar 4, 2012
1 parent 580da47 commit 6432160
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -101,7 +101,7 @@ sub doInventory {
sub _getUSBPrinterSerial {
my ($portName, $logger) = @_;

# first, find the USB container ID for this printer
# find the ParentIdPrefix value for the printer matching given portname
my $prefix = _getUSBPrefix(
getRegistryKey(
path => "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Enum/USBPRINT",
Expand All @@ -111,7 +111,7 @@ sub _getUSBPrinterSerial {
);
return unless $prefix;

# second, get the serial number from the ID container entry
# find the key name for the device matching given parentIdPrefix
my $serial = _getUSBSerial(
getRegistryKey(
path => "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Enum/USB",
Expand All @@ -123,7 +123,6 @@ sub _getUSBPrinterSerial {
return $serial;
}

# find the ParentIdPrefix value for the printer matching given portname
sub _getUSBPrefix {
my ($print, $portName) = @_;

Expand Down Expand Up @@ -151,7 +150,6 @@ sub _getUSBPrefix {
return;
}

# find the key name for the device matching given parentIdPrefix
sub _getUSBSerial {
my ($usb, $prefix) = @_;

Expand Down

0 comments on commit 6432160

Please sign in to comment.