Properly format MAC addresses on change event

git-svn-id: http://www.observium.org/svn/observer/trunk@1115 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-06-09 18:05:08 +00:00
parent 8fb2b4809e
commit a1b5886a46

View File

@@ -39,7 +39,7 @@
if($clean_mac != $old_mac[0])
{
if ($debug) { echo "Changed mac address for $ip from $old_mac[0] to $clean_mac\n"; }
log_event("MAC change: $ip : " . $old_mac[0] . " -> $clean_mac", $device, "interface", $interface['interface_id']);
log_event("MAC change: $ip : " . mac_clean_to_readable($old_mac[0]) . " -> " . mac_clean_to_readable($clean_mac), $device, "interface", $interface['interface_id']);
}
mysql_query($sql);
echo(".");