Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1473079 > unrolled thread

[PATCH 16/46] mtd: nandsim: Print error when backend init failed

Started byDaniel Walter <dwalter@sigma-star.at>
First post2016-08-31 09:30 +0200
Last post2016-08-31 09:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 16/46] mtd: nandsim: Print error when backend init failed Daniel Walter <dwalter@sigma-star.at> - 2016-08-31 09:30 +0200

#1473079 — [PATCH 16/46] mtd: nandsim: Print error when backend init failed

FromDaniel Walter <dwalter@sigma-star.at>
Date2016-08-31 09:30 +0200
Subject[PATCH 16/46] mtd: nandsim: Print error when backend init failed
Message-ID<sc889-7Pb-3@gated-at.bofh.it>
From: Richard Weinberger <richard@nod.at>

Signed-off-by: Richard Weinberger <richard@nod.at>
---
 drivers/mtd/nand/nandsim.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c
index 633872a..e333c5c 100644
--- a/drivers/mtd/nand/nandsim.c
+++ b/drivers/mtd/nand/nandsim.c
@@ -894,8 +894,10 @@ static int init_nandsim(struct mtd_info *mtd, struct nandsim_params *nsparam)
 
 	ns->bops = nsparam->bops;
 
-	if ((ret = ns->bops->init(ns, nsparam)) != 0)
+	if ((ret = ns->bops->init(ns, nsparam)) != 0) {
+		NS_ERR("Unable to initialize simulator backend: %i\n", ret);
 		return ret;
+	}
 
 	/* Allocate / initialize the internal buffer */
 	ns->buf.byte = kmalloc(ns->geom.pgszoob, GFP_KERNEL);
-- 
2.8.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web