jtag: linuxgpiod: drop extra parenthesis
[openocd.git] / src / helper / util.c
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 /***************************************************************************
4 * Copyright (C) 2010 by Øyvind Harboe *
5 ***************************************************************************/
6
7 /* this file contains various functionality useful to standalone systems */
8
9 #ifdef HAVE_CONFIG_H
10 #include "config.h"
11 #endif
12
13 #include "log.h"
14 #include "time_support.h"
15 #include "util.h"
16
17 COMMAND_HANDLER(handler_util_ms)
18 {
19 if (CMD_ARGC != 0)
20 return ERROR_COMMAND_SYNTAX_ERROR;
21
22 command_print(CMD, "%" PRId64, timeval_ms());
23
24 return ERROR_OK;
25 }
26
27 static const struct command_registration util_command_handlers[] = {
28 {
29 .name = "ms",
30 .mode = COMMAND_ANY,
31 .handler = handler_util_ms,
32 .help =
33 "Returns ever increasing milliseconds. Used to calculate differences in time.",
34 .usage = "",
35 },
36 COMMAND_REGISTRATION_DONE
37 };
38
39 int util_init(struct command_context *cmd_ctx)
40 {
41 return register_commands(cmd_ctx, NULL, util_command_handlers);
42 }

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)