See also RHBZ#923355. --- src/actions-support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions-support.c b/src/actions-support.c index d0e3e67..00d8cdc 100644 --- a/src/actions-support.c +++ b/src/actions-support.c @@ -68,7 +68,7 @@ int guestfs___check_appliance_up (guestfs_h *g, const char *caller) { if (g->state == CONFIG || g->state == LAUNCHING) { - error (g, "%s: call launch before using this function\\n(in guestfish, don't forget to use the 'run' command)", + error (g, "%s: call launch before using this function\n(in guestfish, don't forget to use the 'run' command)", caller); return -1; } -- 1.8.3.1
Richard W.M. Jones
2013-Dec-09 19:26 UTC
Re: [Libguestfs] [PATCH] lib: fix newline in error output
On Mon, Dec 09, 2013 at 08:13:19PM +0100, Pino Toscano wrote:> See also RHBZ#923355. > --- > src/actions-support.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/actions-support.c b/src/actions-support.c > index d0e3e67..00d8cdc 100644 > --- a/src/actions-support.c > +++ b/src/actions-support.c > @@ -68,7 +68,7 @@ int > guestfs___check_appliance_up (guestfs_h *g, const char *caller) > { > if (g->state == CONFIG || g->state == LAUNCHING) { > - error (g, "%s: call launch before using this function\\n(in guestfish, don't forget to use the 'run' command)", > + error (g, "%s: call launch before using this function\n(in guestfish, don't forget to use the 'run' command)", > caller); > return -1; > }ACK. That's a stupid mistake :-( I believe this actually fixes RHBZ#923355? So probably best to put that in the subject line of the bug before you push it, and also to close the bug. Thanks, Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
Pino Toscano
2013-Dec-10 09:30 UTC
Re: [Libguestfs] [PATCH] lib: fix newline in error output
On Monday 09 December 2013 19:26:47 Richard W.M. Jones wrote:> On Mon, Dec 09, 2013 at 08:13:19PM +0100, Pino Toscano wrote: > > See also RHBZ#923355. > > --- > > > > src/actions-support.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/src/actions-support.c b/src/actions-support.c > > index d0e3e67..00d8cdc 100644 > > --- a/src/actions-support.c > > +++ b/src/actions-support.c > > @@ -68,7 +68,7 @@ int > > > > guestfs___check_appliance_up (guestfs_h *g, const char *caller) > > { > > > > if (g->state == CONFIG || g->state == LAUNCHING) { > > > > - error (g, "%s: call launch before using this function\\n(in > > guestfish, don't forget to use the 'run' command)", + error (g, > > "%s: call launch before using this function\n(in guestfish, don't > > forget to use the 'run' command)",> > > caller); > > > > return -1; > > > > } > > ACK. > > That's a stupid mistake :-( > > I believe this actually fixes RHBZ#923355? So probably best to put > that in the subject line of the bug before you push it, and also to > close the bug.The bug seemed a bit more generic, not just about this specific occurrence. That's why I left a comment in it, and just mentioned it in the commit message of this patch without the closing syntax. I just changed the commit message and pushed it, and the bug closing will come shortly. Thanks, -- Pino Toscano
Reasonably Related Threads
- Re: [PATCH] lib: fix newline in error output
- [PATCH 0/3] lib: Don't assert fail if port is missing in XML (RHBZ#1370424).
- [PATCH] drives: add CD-ROM disk images as read-only drives (RHBZ#563450).
- [PATCH 1/6] cmd: add a way to run (and wait) asynchronously commands
- [PATCH 2/2] Fix handling of passwords in URLs