From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 2/4] ubifs: Add functions for generic fs use
Date: Mon, 14 Sep 2015 19:29:58 +0200 [thread overview]
Message-ID: <55F70416.1020103@redhat.com> (raw)
In-Reply-To: <55E60327.4090402@wwwdotorg.org>
Hi,
On 01-09-15 21:57, Stephen Warren wrote:
> On 08/22/2015 11:04 AM, Hans de Goede wrote:
>> Implement the necessary functions for implementing generic fs support
>> for ubifs.
>
>> diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c
>
>> +int ubifs_set_blk_dev(block_dev_desc_t *rbdd, disk_partition_t *info)
>> +{
>> + /* Check that ubifs is mounted and that we are not being a blkdev */
>> + if (!ubifs_mounted) {
>> + printf("UBIFS not mounted, use ubifsmount to mount volume first!\n");
>> + return -1;
>> + }
>> +
>> + if (rbdd) {
>> + printf("UBIFS cannot be used with normal block devices\n");
>> + return -1;
>> + }
>> +
>> + return 0;
>> +}
>
> I think those printf() should be debug(). Otherwise, if (a) someone
> attempts to run generic filesystem commands on a device with no
> filesystem or (b) we add new filesystems into fstypes[] after ubifs,
> those prints are going to happen even though a user didn't do something
> to explicitly cause a ubifs-related issue.
Ack, will fix.
Regards,
Hans
next prev parent reply other threads:[~2015-09-14 17:29 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-22 18:04 [U-Boot] [PATCH v2 0/4] distro_bootcmd: Add support for booting from ubifs Hans de Goede
2015-08-22 18:04 ` [U-Boot] [PATCH v2 1/4] ubifs: Modify ubifs u-boot wrapper function prototypes for generic fs use Hans de Goede
2015-08-25 11:00 ` Heiko Schocher
2015-08-25 11:32 ` Hans de Goede
2015-08-28 14:52 ` Tom Rini
2015-08-28 15:33 ` Heiko Schocher
2015-08-31 16:08 ` Hans de Goede
2015-09-01 3:46 ` Heiko Schocher
2015-09-01 10:57 ` Heiko Schocher
2015-08-22 18:04 ` [U-Boot] [PATCH v2 2/4] ubifs: Add functions " Hans de Goede
2015-08-25 11:02 ` Heiko Schocher
2015-09-01 19:57 ` Stephen Warren
2015-09-01 20:01 ` Michael Trimarchi
2015-09-14 17:29 ` Hans de Goede [this message]
2015-08-22 18:04 ` [U-Boot] [PATCH v2 3/4] ubifs: Add generic fs support Hans de Goede
2015-08-25 11:20 ` Heiko Schocher
2015-09-01 20:03 ` Stephen Warren
2015-09-14 17:35 ` Hans de Goede
2015-09-21 18:11 ` Stephen Warren
2015-08-22 18:04 ` [U-Boot] [PATCH v2 4/4] distro_bootcmd: Add support for booting from ubifs Hans de Goede
2015-09-01 20:13 ` Stephen Warren
2015-09-14 17:48 ` Hans de Goede
2015-08-24 16:57 ` [U-Boot] [PATCH v2 0/4] " Scott Wood
2015-08-25 7:15 ` Hans de Goede
2015-08-25 7:31 ` Heiko Schocher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55F70416.1020103@redhat.com \
--to=hdegoede@redhat.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox