On 2013-02-23 14:40, Andreas Färber wrote: >> +static int at24_init(I2CSlave *i2c) > > hw/i2c.c:i2c_slave_qdev_init() calls I2CSlaveClass::init only, so please > use a realize function instead. Cf. hw/qdev-core.h. > >> +{ >> + AT24State *s = DO_UPCAST(AT24State, i2c, i2c); >> + unsigned int page_size; >> + int64_t image_size; >> + int device_bits; >> + int hi_addr_bits; >> + int dev_no; >> + >> + assert(AT24_MAX_PAGE_LEN <= BDRV_SECTOR_SIZE); > > This should instead do error_setg(errp, "...") then.
I just noticed with my latest code that the messages set via error_setg do not make it to the terminal when initializing the device from the command line. Known issue? Jan -- Siemens AG, Corporate Technology, CT RTC ITP SDP-DE Corporate Competence Center Embedded Linux