#6274 NORM Never A: Analyze-activity mis-prints MAC address

Zarro Boogs per Child bugtracker at laptop.org
Wed Jan 30 14:12:10 EST 2008


#6274: Analyze-activity mis-prints MAC address
------------------------------+---------------------------------------------
 Reporter:  yfarjoun          |       Owner:  yfarjoun      
     Type:  defect            |      Status:  new           
 Priority:  normal            |   Milestone:  Never Assigned
Component:  analyze-activity  |     Version:  Build 653     
 Keywords:  MAC address hex   |    Verified:  0             
 Blocking:                    |   Blockedby:                
------------------------------+---------------------------------------------
 When looking at the MAC address of a interface where some of the HEX
 entries are less than 16, the first 0 is ommited. Thus 0x0c comes out as
 :c:. This is not the standard way (I think).

 The problem is in netdevice.py line 77 (from the head)

 77                 hdigit = hex(ord(char))[2:]

 should instead be

 77                 hdigit = '%02x'%ord(char)

 or similar.

 I can create a patch, but I wanted to see what people think of this first.
 (Thus I've assigned this to me..)

-- 
Ticket URL: <http://dev.laptop.org/ticket/6274>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list