This patch adds some debug functions, cleans up whitespace (per indent), and adds const in a few places.
include/device/path.h Make path_eq take const path*.
include/device/device.h Use const with dev_path, dev_id_string, bus_path, find_dev_path, andalloc_find.
device/device.c Add functions for tree printing of devs and resources. Change %p to more useful info.
device/device_util.c Use const changes from device.h.
lib/stage2.c Use updated printing functions.
Signed-off-by: Myles Watson mylesgw@gmail.com
Build tested on qemu, norwich, and serengeti. Boot tested on Serengeti.
Thanks, Myles