linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Removed extra space from udevinfo symlink output.
@ 2007-09-20 11:57 Harald Hoyer
  2007-09-20 20:47 ` Kay Sievers
  0 siblings, 1 reply; 2+ messages in thread
From: Harald Hoyer @ 2007-09-20 11:57 UTC (permalink / raw)
  To: linux-hotplug

diff --git a/udevinfo.c b/udevinfo.c
index be9aa76..8e54705 100644
--- a/udevinfo.c
+++ b/udevinfo.c
@@ -389,10 +389,16 @@ int main(int argc, char *argv[], char *envp[])
 				goto exit;
 			if (root)
 				list_for_each_entry(name_loop, &udev->symlink_list, node)
-					printf("%s/%s ", udev_root, name_loop->name);
+					if (name_loop->node.next != &udev->symlink_list)
+						printf("%s/%s ", udev_root, name_loop->name);
+					else
+						printf("%s/%s", udev_root, name_loop->name);
 			else
 				list_for_each_entry(name_loop, &udev->symlink_list, node)
-					printf("%s ", name_loop->name);
+					if (name_loop->node.next != &udev->symlink_list)
+						printf("%s ", name_loop->name);
+					else
+						printf("%s", name_loop->name);
 			printf("\n");
 			break;
 		case QUERY_PATH:
-- 
1.5.2.4


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Removed extra space from udevinfo symlink output.
  2007-09-20 11:57 [PATCH] Removed extra space from udevinfo symlink output Harald Hoyer
@ 2007-09-20 20:47 ` Kay Sievers
  0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2007-09-20 20:47 UTC (permalink / raw)
  To: linux-hotplug

On 9/20/07, Harald Hoyer <harald@redhat.com> wrote:
> diff --git a/udevinfo.c b/udevinfo.c
> index be9aa76..8e54705 100644
> --- a/udevinfo.c
> +++ b/udevinfo.c
> @@ -389,10 +389,16 @@ int main(int argc, char *argv[], char *envp[])
>                                 goto exit;
>                         if (root)
>                                 list_for_each_entry(name_loop, &udev->symlink_list, node)
> -                                       printf("%s/%s ", udev_root, name_loop->name);
> +                                       if (name_loop->node.next != &udev->symlink_list)
> +                                               printf("%s/%s ", udev_root, name_loop->name);
> +                                       else
> +                                               printf("%s/%s", udev_root, name_loop->name);
>                         else
>                                 list_for_each_entry(name_loop, &udev->symlink_list, node)
> -                                       printf("%s ", name_loop->name);
> +                                       if (name_loop->node.next != &udev->symlink_list)
> +                                               printf("%s ", name_loop->name);
> +                                       else
> +                                               printf("%s", name_loop->name);
>                         printf("\n");
>                         break;
>                 case QUERY_PATH:

Applied.

Thanks,
Kay

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-20 20:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-20 11:57 [PATCH] Removed extra space from udevinfo symlink output Harald Hoyer
2007-09-20 20:47 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).