forked from enlightenment/efl
use defines as their string value in printfs
SVN revision: 59421
This commit is contained in:
parent
b821494eed
commit
4139d9282e
|
@ -219,12 +219,12 @@ eeze_disk_mount(Eeze_Disk *disk)
|
||||||
|
|
||||||
if ((!disk->mount_point) || (!disk->mount_point[0])) return EINA_FALSE;
|
if ((!disk->mount_point) || (!disk->mount_point[0])) return EINA_FALSE;
|
||||||
if (disk->mount_opts == EEZE_DISK_MOUNTOPT_DEFAULTS)
|
if (disk->mount_opts == EEZE_DISK_MOUNTOPT_DEFAULTS)
|
||||||
eina_strbuf_append_printf(disk->mount_cmd, "%s -o %s UUID=%s %s", EEZE_MOUNT_BIN, EEZE_MOUNT_DEFAULT_OPTS, disk->cache.uuid, disk->mount_point);
|
eina_strbuf_append_printf(disk->mount_cmd, EEZE_MOUNT_BIN" -o "EEZE_MOUNT_DEFAULT_OPTS" UUID=%s %s", disk->cache.uuid, disk->mount_point);
|
||||||
else if (!disk->mount_opts)
|
else if (!disk->mount_opts)
|
||||||
eina_strbuf_append_printf(disk->mount_cmd, "%s UUID=%s %s", EEZE_MOUNT_BIN, disk->cache.uuid, disk->mount_point);
|
eina_strbuf_append_printf(disk->mount_cmd, EEZE_MOUNT_BIN" UUID=%s %s", disk->cache.uuid, disk->mount_point);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
eina_strbuf_append_printf(disk->mount_cmd, "%s -o ", EEZE_MOUNT_BIN);
|
eina_strbuf_append(disk->mount_cmd, EEZE_MOUNT_BIN" -o ");
|
||||||
/* trailing commas are okay */
|
/* trailing commas are okay */
|
||||||
if (disk->mount_opts & EEZE_DISK_MOUNTOPT_LOOP)
|
if (disk->mount_opts & EEZE_DISK_MOUNTOPT_LOOP)
|
||||||
eina_strbuf_append(disk->mount_cmd, "loop,");
|
eina_strbuf_append(disk->mount_cmd, "loop,");
|
||||||
|
|
Loading…
Reference in New Issue