diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2012-10-31 16:52:18 +0100 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2012-10-31 16:52:18 +0100 |
commit | 4fbbacf8fd32cf14771c791b922c8e3e828b3add (patch) | |
tree | 08985d89cdbdd8ee824611ecfa827bfc83bfe82a | |
parent | 3543858c3a211e48c521ae788b2af483f6402d43 (diff) | |
parent | b3e72893baad1f5fa3390cee8f24570afdddd750 (diff) |
Merge branch 'colibri' of git://git.toradex.com/u-boot-toradex.git into colibri
-rw-r--r-- | board/toradex/common/tegra2_partitions.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/board/toradex/common/tegra2_partitions.c b/board/toradex/common/tegra2_partitions.c index c64d5e7299c..9ee4a4519d9 100644 --- a/board/toradex/common/tegra2_partitions.c +++ b/board/toradex/common/tegra2_partitions.c @@ -227,14 +227,20 @@ int nvtegra_mtdparts_string(char *output, int size) p = &(pt->partinfo[0]); for (i = 0; (p->id < 128) && (i < TEGRA_MAX_PARTITIONS); i++) { if (p != usr) { + /* add coma separator after previous entries */ + if (j > 0) { + sprintf(buffer + j, ","); + j++; + } + if (strlen(p->name)) - sprintf(buffer + j, ",%uK@%uK(%s)", + sprintf(buffer + j, "%uK@%uK(%s)", p->virtual_size * nand_info->writesize / 1024, p->start_sector * nand_info->writesize / 1024, p->name); else - sprintf(buffer + j, ",%uK@%uK", + sprintf(buffer + j, "%uK@%uK", p->virtual_size * nand_info->writesize / 1024, p->start_sector * |