modified:   common/device.c