client: send confirmation messages for ring add/remove
[project/udebug.git] / udebug-cli
index 6d0b98bc93e836935d1c0b4c2750a41074b19a21..0fbf3a0ddc66cdb5ca3a48a83c2bfe484dc336bd 100755 (executable)
@@ -46,7 +46,7 @@ while (substr(ARGV[0], 0, 1) == "-") {
        let opt = substr(shift(ARGV), 1);
        switch(opt) {
        case 'd':
-               opts.duration = 1.0 * shift(ARGV);
+               opts.duration = +shift(ARGV);
                break;
        case 's':
                opts.socket = shift(ARGV);
@@ -152,7 +152,7 @@ let cmds = {
 
                for (let ring in selected) {
                        if (!open_ring(ring)) {
-                               _warn(`Failed to open ring ${ring_name}\n`);
+                               _warn(`Failed to open ring ${ring.proc_name}:${ring.ring_name}\n`);
                                if (opts.force)
                                        continue;