NS_ERR
NS_ERR("Erase counter total overflow\n");
NS_ERR("Erase counter overflow for erase block %u\n", erase_block_no);
NS_ERR("get_state_name: unknown state, BUG\n");
NS_ERR("get_state_by_command: unknown command, BUG\n");
NS_ERR("read_page: read error for page %d ret %ld\n", ns->regs.row, (long)tx);
NS_ERR("prog_page: read error for page %d ret %ld\n", ns->regs.row, (long)tx);
NS_ERR("prog_page: write error for page %d ret %ld\n", ns->regs.row, (long)tx);
NS_ERR("prog_page: write error for page %d ret %ld\n", ns->regs.row, (long)tx);
NS_ERR("prog_page: error allocating memory for page %d\n", ns->regs.row);
NS_ERR("do_state_action: column number is too large\n");
NS_ERR("do_state_action: device is write-protected, ignore sector erase\n");
NS_ERR("do_state_action: wrong sector address (%#x)\n", ns->regs.row);
NS_ERR("do_state_action: too few bytes were input (%d instead of %d)\n",
NS_ERR("do_state_action: BUG! can't skip half of page for non-512"
NS_ERR("switch_state: BUG! unknown data state\n");
NS_ERR("switch_state: BUG! unknown address state\n");
NS_ERR("read_byte: chip is disabled, return %#x\n", (uint)outb);
NS_ERR("read_byte: ALE or CLE pin is high, return %#x\n", (uint)outb);
NS_ERR("write_byte: chip is disabled, ignore write\n");
NS_ERR("write_byte: ALE and CLE pins are high simultaneously, ignore write\n");
NS_ERR("write_byte: unknown command %#x\n", (uint)byte);
NS_ERR("write_byte: address (%#x) isn't expected, expected state is %s, switch to STATE_READY\n",
NS_ERR("write_byte: no more address bytes expected\n");
NS_ERR("write_byte: data input (%#x) isn't expected, state is %s, switch to %s\n",
NS_ERR("write_buf: data input isn't expected, state is %s, switch to STATE_READY\n",
NS_ERR("write_buf: too many input bytes\n");
NS_ERR("read_buf: chip is disabled\n");
NS_ERR("read_buf: ALE or CLE pin is high\n");
NS_ERR("read_buf: too many bytes to read\n");
NS_ERR("BCH ECC support is disabled\n");
NS_ERR("BCH not available on small page devices\n");
NS_ERR("Invalid BCH value %u\n", bch);
NS_ERR("wrong bus width (%d), use only 8 or 16\n", bus_width);
NS_ERR("unable to allocate core structures.\n");
NS_ERR("bbt has to be 0..2\n");
NS_ERR("Could not scan NAND Simulator device\n");
NS_ERR("overridesize is too big\n");
NS_ERR("cannot create \"nandsim_wear_report\" debugfs entry\n");
NS_ERR("alloc_device: cache file not readable\n");
NS_ERR("alloc_device: cache file not writeable\n");
NS_ERR("alloc_device: unable to allocate pages written array\n");
NS_ERR("alloc_device: unable to allocate file buf\n");
NS_ERR("alloc_device: unable to allocate page array\n");
NS_ERR("cache_create: unable to create kmem_cache\n");
NS_ERR("init_nandsim: nandsim is already initialized\n");
NS_ERR("init_nandsim: unknown page size %u\n", ns->geom.pgsz);
NS_ERR("too many partitions.\n");
NS_ERR("bad partition size.\n");
NS_ERR("unable to allocate memory.\n");
NS_ERR("too many partitions.\n");
NS_ERR("unable to allocate memory.\n");
NS_ERR("init_nandsim: unable to allocate %u bytes for the internal buffer\n",
NS_ERR("invalid badblocks.\n");
NS_ERR("invalid badblocks.\n");
NS_ERR("invalid weakblocks.\n");
NS_ERR("unable to allocate memory.\n");
NS_ERR("invalid weakpages.\n");
NS_ERR("unable to allocate memory.\n");
NS_ERR("invalid gravepagess.\n");
NS_ERR("unable to allocate memory.\n");
NS_ERR("Too many erase blocks for wear reporting\n");