[prev in list] [next in list] [prev in thread] [next in thread]
List: openbsd-tech
Subject: Re: vmctl: clarify console error message
From: Mike Larkin <mlarkin () azathoth ! net>
Date: 2018-02-26 2:40:32
Message-ID: 20180226024032.GA47114 () azathoth ! net
[Download RAW message or body]
On Sun, Feb 25, 2018 at 06:30:10PM -0800, Carlos Cardenas wrote:
> Attached patch clears up an ambiguous error message when attaching to a
> console fails.
>
> The vm id is not guaranteed to be populated.
>
> Comments? Ok?
>
> +--+
> Carlos
> Index: vmctl.c
> ===================================================================
> RCS file: /home/los/cvs/src/usr.sbin/vmctl/vmctl.c,v
> retrieving revision 1.45
> diff -u -p -r1.45 vmctl.c
> --- vmctl.c 3 Jan 2018 05:39:56 -0000 1.45
> +++ vmctl.c 20 Feb 2018 05:09:09 -0000
> @@ -702,7 +702,7 @@ vm_console(struct vmop_info_result *list
> }
> }
>
> - errx(1, "console %d not found", info_id);
> + errx(1, "console not found");
> }
>
> /*
ok mlarkin
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic