use defines as their string value in printfs

SVN revision: 59421
This commit is contained in:
Mike Blumenkrantz 2011-05-15 22:50:22 +00:00
parent b821494eed
commit 4139d9282e
1 changed files with 3 additions and 3 deletions

View File

@ -219,12 +219,12 @@ eeze_disk_mount(Eeze_Disk *disk)
if ((!disk->mount_point) || (!disk->mount_point[0])) return EINA_FALSE;
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)
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
{
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 */
if (disk->mount_opts & EEZE_DISK_MOUNTOPT_LOOP)
eina_strbuf_append(disk->mount_cmd, "loop,");