From e3724414d46b6aee7ffe5eb851a6833ac23e6b16 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 17 Sep 2014 14:31:20 -0700 Subject: [PATCH] change bitcoind.js prefix. --- lib/bitcoind.js | 8 ++++---- src/bitcoindjs.cc | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/bitcoind.js b/lib/bitcoind.js index 24c18ec2..b57f0ab1 100644 --- a/lib/bitcoind.js +++ b/lib/bitcoind.js @@ -105,19 +105,19 @@ Bitcoin.prototype.log = Bitcoin.prototype.info = function() { if (typeof arguments[0] !== 'string') { var out = util.inspect(arguments[0], null, 20, true); - return process.stdout.write('bitcoind: ' + out + '\n'); + return process.stdout.write('bitcoind.js: ' + out + '\n'); } var out = util.format.apply(util, arguments); - return process.stdout.write('bitcoind: ' + out + '\n'); + return process.stdout.write('bitcoind.js: ' + out + '\n'); }; Bitcoin.prototype.error = function() { if (typeof arguments[0] !== 'string') { var out = util.inspect(arguments[0], null, 20, true); - return process.stderr.write('bitcoind: ' + out + '\n'); + return process.stderr.write('bitcoind.js: ' + out + '\n'); } var out = util.format.apply(util, arguments); - return process.stderr.write('bitcoind: ' + out + '\n'); + return process.stderr.write('bitcoind.js: ' + out + '\n'); }; Bitcoin.prototype.stop = diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 4ea72acd..c49a3c8b 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -401,16 +401,16 @@ start_node_thread(void) { const char bitcoind_char[256] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, /* <- ' ', */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, /* <- ' ' */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '.', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ':', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 'b', 'c', 'd', 0, 0, 0, 0, 'i', 0, 0, 0, 0, 'n', 'o', 0, 0, 0, 0, 't', 0, 0, + 'b', 'c', 'd', 0, 0, 0, 0, 'i', 'j', 0, 0, 0, 'n', 'o', 0, 0, 0, 's', 't', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, }; static void @@ -436,7 +436,7 @@ parse_logs(int **out_pipe, int **log_pipe) { char *rbuf; if (r == -1) { - fprintf(stderr, "bitcoind: error=\"parse_logs(): bad read.\"\n"); + fprintf(stderr, "bitcoind.js: error=\"parse_logs(): bad read.\"\n"); sleep(1); continue; } @@ -454,7 +454,7 @@ parse_logs(int **out_pipe, int **log_pipe) { cur[cp] = rbuf[0]; cp++; cur[cp] = '\0'; - if (strcmp(cur, "bitcoind:") == 0) { + if (strcmp(cur, "bitcoind.js:") == 0) { size_t wcount = r; ssize_t w = 0; ssize_t wtotal = 0; @@ -465,7 +465,7 @@ parse_logs(int **out_pipe, int **log_pipe) { wtotal += w; while ((w = write(STDOUT_FILENO, rbuf + i + wtotal, wcount))) { if (w == -1) { - fprintf(stderr, "bitcoind: error=\"parse_logs(): bad write.\"\n"); + fprintf(stderr, "bitcoind.js: error=\"parse_logs(): bad write.\"\n"); sleep(1); break; } @@ -492,7 +492,7 @@ parse_logs(int **out_pipe, int **log_pipe) { ssize_t wtotal = 0; while ((w = write(*log_pipe[1], rbuf + i + wtotal + 1, wcount))) { if (w == -1) { - fprintf(stderr, "bitcoind: error=\"parse_logs(): bad write.\"\n"); + fprintf(stderr, "bitcoind.js: error=\"parse_logs(): bad write.\"\n"); sleep(1); break; }