message
stringlengths
6
474
diff
stringlengths
8
5.22k
Fix formatting error Fixed error that caused `<stdio.h>` to disappear from C `#include` directive
@@ -208,7 +208,7 @@ You can find this file in the [example](https://github.com/wren-lang/wren/blob/m <pre class="snippet" data-lang="c"> //For more details, visit https://wren.io/embedding/ -#include <stdio.h> +#include &lt;stdio.h> #include "wren.h" static void writeFn(WrenVM* vm, const char* text)
board/yorp/board.c: Format with clang-format BRANCH=none TEST=none
@@ -64,10 +64,10 @@ static void ppc_interrupt(enum gpio_signal signal) /* ADC channels */ const struct adc_t adc_channels[] = { - [ADC_TEMP_SENSOR_AMB] = { - "TEMP_AMB", NPCX_ADC_CH0, ADC_MAX_VOLT, ADC_READ_MAX+1, 0}, - [ADC_TEMP_SENSOR_CHARGER] = { - "TEMP_CHARGER", NPCX_ADC_CH1, ADC_MAX_VOLT, ADC_READ_MAX+1, 0}, + [A...
test-suite: openmpi3->4 for run_mpi_binary() utility
@@ -312,7 +312,7 @@ run_mpi_binary () { fi if [ "$RESOURCE_MANAGER" = "slurm" ];then - if [ "$LMOD_FAMILY_MPI" = "impi" -o "$LMOD_FAMILY_MPI" = "mvapich2" -o "$LMOD_FAMILY_MPI" = "openmpi3" -o "$LMOD_FAMILY_MPI" = "mpich" ];then + if [ "$LMOD_FAMILY_MPI" = "impi" -o "$LMOD_FAMILY_MPI" = "mvapich2" -o "$LMOD_FAMILY_MPI"...
Explicitly cast json numbers to double.
@@ -1397,7 +1397,7 @@ tsError ts_bspline_to_json(const tsBSpline *spline, char **_json_) /* Set degree and dimension. */ status = json_object_set_number( - spline_object, "degree", deg); + spline_object, "degree", (double) deg); if (status != JSONSuccess) { json_value_free(spline_value); json_value_free(ctrlp_value); @...
Send ECN bits for packets which include PATH_CHALLENGE and PATH_RESPONSE
@@ -3926,8 +3926,9 @@ static int conn_on_path_validation_failed(ngtcp2_conn *conn, ngtcp2_pv *pv, * User-defined callback function failed. */ static ngtcp2_ssize conn_write_path_challenge(ngtcp2_conn *conn, - ngtcp2_path *path, uint8_t *dest, - size_t destlen, + ngtcp2_path *path, + ngtcp2_pkt_info *pi, + uint8_t *dest...
sh2 update (correction) changed 548 to 547 fmul dword ptr []
@@ -139,7 +139,7 @@ void Init() 236,238,240,242,244,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302, 304,306,308,310,312,314,316,318,320,322,324,326,328,330,332,334,336,338,340,342,344,346,348,350,352,354,356,370,372,386,388,390,392,394,396, 398,400,40...
Minor update to focus_on_window_activation Removed xwayland limitation since wayland clients are supported via xdg-activation.
@@ -620,11 +620,11 @@ The default colors are: after switching between workspaces. *focus_on_window_activation* smart|urgent|focus|none - This option determines what to do when an xwayland client requests - window activation. If set to _urgent_, the urgent state will be set - for that window. If set to _focus_, the wind...
Clarify when to use PageSetLSN/PageGetLSN(). Update README to explain prerequisites for correct access to LSN fields of a page. Independent chunk removed from checksums patch to reduce size of patch.
@@ -531,6 +531,14 @@ associated with the n'th distinct buffer ID seen in the "rdata" array, and per the above discussion, fully-rewritable buffers shouldn't be mentioned in "rdata".) +Note that we must only use PageSetLSN/PageGetLSN() when we know the action +is serialised. Only Startup process may modify data blocks d...
doc: also fix readability in source file
@@ -8,9 +8,7 @@ between out-of-the-box behavior and a well-configured, fine-tuned system. To support that experience, a so-called **default backend** is responsible in the case that nothing was configured so far. It must -have a storage that is able to store full Elektra semantics. To avoid -reimplementation of storage...
audio: missing lock around stream_send And we may need locks around all tx->ts_ext too ?
@@ -600,7 +600,9 @@ static void check_telev(struct audio *a, struct autx *tx) goto out; mb->pos = STREAM_PRESZ; + lock_write_get(a->tx.lock); err = stream_send(a->strm, false, marker, fmt->pt, tx->ts_tel, mb); + lock_rel(a->tx.lock); if (err) { warning("audio: telev: stream_send %m\n", err); }
Document minimum GCC version for -fopenmp-simd
@@ -178,7 +178,8 @@ equivalent is), you should enable OpenMP 4 SIMD support by defining enabling OpenMP support in your compiler. GCC and ICC both support a flag to enable only OpenMP SIMD support instead of full OpenMP (the OpenMP SIMD support doesn't require the OpenMP run-time library); for GCC the -flag is `-fopenm...
voxel: Increase CHIPSET stack size Prompted by observed stack overflow. TEST=make buildall BRANCH=volteer
TASK_ALWAYS(CHARGER, charger_task, NULL, VENTI_TASK_STACK_SIZE) \ TASK_ALWAYS(MOTIONSENSE, motion_sense_task, NULL, VENTI_TASK_STACK_SIZE) \ TASK_NOTEST(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \ - TASK_NOTEST(CHIPSET, chipset_task, NULL, LARGER_TASK_STACK_SIZE) \ + TASK_NOTEST(CHIPSET, chipset_task, NU...
Fixing len for snmp
@@ -199,7 +199,7 @@ ACVP_RESULT acvp_kdf135_snmp_kat_handler(ACVP_CTX *ctx, JSON_Object *obj) { goto err; } unsigned int actual_len = strnlen_s(password, ACVP_KDF135_SNMP_PASS_LEN_MAX); - if (actual_len != p_len) { + if (actual_len != p_len / 8) { ACVP_LOG_ERR("pLen(%d) or password length(%d) incorrect", p_len, actual_...
pybricks/iodevices/UARTDevice: use hal_ticks_ms instead of contiki time Now that this code has been moved out of pbio and into the Pybricks package, this should use mp_hal_ticks_ms to get the time.
#define UART_MAX_LEN (32 * 1024) -#include <contiki.h> - // pybricks.iodevices.UARTDevice class object typedef struct _iodevices_UARTDevice_obj_t { mp_obj_base_t base; @@ -42,7 +40,7 @@ pbio_error_t serial_read(iodevices_UARTDevice_obj_t *self, uint8_t *buf, size_t if (!self->busy) { // Reset state variables if we are ...
mm_heap/heapinfo : modify the range of each free nodelist Heap management has been changed where each free nodelist ranges ]2^i, 2^(i+1)] instead of [2^i, 2^(i+1)[. For example, the second list ranges [33, 64] instead of [32, 63].
@@ -256,7 +256,7 @@ void heapinfo_parse(FAR struct mm_heap_s *heap, int mode, pid_t pid) mm_givesemaphore(heap); for (ndx = 0; ndx < MM_NNODES; ++ndx) { - printf("Nodelist[%d] (less than %d) : num %d, size %d [Bytes]\n", ndx, 1 << (ndx + MM_MIN_SHIFT + 1), nodelist_cnt[ndx], nodelist_size[ndx]); + printf("Nodelist[%d] ...
Allow suffixedexp to have an empty suffix This simplifies a couple of parser rules.
@@ -366,7 +366,7 @@ local grammar = re.compile([[ e11 <- (P {| unop* |} e12) -> fold_unops e12 <- (P castexp (op12 e11^OpExp)?) -> binop_right - suffixedexp <- (prefixexp {| expsuffix+ |}) -> fold_suffixes + suffixedexp <- (prefixexp {| expsuffix* |}) -> fold_suffixes expsuffix <- (P funcargs) -> suffix_func_call / (P ...
Update compile steps for Raspberry Pi Issues and
@@ -50,7 +50,9 @@ Packages for Qt4 and Raspbian Wheezy are available but not described here. 3. Compile the plugin - qmake && make -j3 + qmake && make -j2 + +**Note** On Raspberry Pi 1 use `qmake && make` 4. Replace original plugin
vere: use hex literal for database size passed to u3_lmdb_init()
@@ -751,10 +751,11 @@ u3_disk_init(c3_c* pax_c, u3_disk_cb cb_u) // "[..] on 64-bit there is no penalty for making this huge (say 1TB)." // { + const size_t siz_i = #if (defined(U3_CPU_aarch64) && defined(U3_OS_linux)) || defined(U3_OS_mingw) - const size_t siz_i = 64424509440; + 0xf00000000; #else - const size_t siz_i...
parallel-libs/opencoarrays: update build to rely on ohpc cmake instead of distro version as pthread compilation not working with Leap15.1 build of cmake.
@@ -27,7 +27,7 @@ Source0: https://github.com/sourceryinstitute/OpenCoarrays/releases/downl Patch1: opencoarrays-disable-get-comm-test.patch Url: http://www.opencoarrays.org Requires: lmod%{PROJ_DELIM} >= 7.6.1 -BuildRequires: cmake +BuildRequires: cmake%{PROJ_DELIM} #!BuildIgnore: post-build-checks @@ -52,6 +52,7 @@ T...
test/recipes/80-test_ssl_old.t: Replace 'openssl gendsa' Use 'openssl genpkey' instead.
@@ -36,7 +36,7 @@ my $digest = "-sha1"; my @reqcmd = ("openssl", "req"); my @x509cmd = ("openssl", "x509", $digest); my @verifycmd = ("openssl", "verify"); -my @gendsacmd = ("openssl", "gendsa"); +my @genpkeycmd = ("openssl", "genpkey"); my $dummycnf = srctop_file("apps", "openssl.cnf"); my $CAkey = "keyCA.ss"; @@ -178...
Better error message for list unpacking on already defined variables
@@ -381,7 +381,7 @@ static void declareVariable(Compiler *compiler, Token *name) { Local *local = &compiler->locals[i]; if (local->depth != -1 && local->depth < compiler->scopeDepth) break; if (identifiersEqual(name, &local->name)) { - error(compiler->parser, "Variable with this name already declared in this scope."); ...
arch: cxd56xx: Fix compile warning in cxd56_pwm.c
#include "cxd56_clock.h" #include "cxd56_pwm.h" +#if defined(CONFIG_CXD56_PWM0) || defined(CONFIG_CXD56_PWM1) || \ + defined(CONFIG_CXD56_PWM2) || defined(CONFIG_CXD56_PWM3) + /**************************************************************************** * Pre-processor Definitions **************************************...
roller: bug fix in looking for sending diff
?~ sen=(get:ors:dice sending [address nonce]) ~? lverb [dap.bowl %weird-double-remove nonce+nonce] sending - ?~ nin=(find [raw-tx.diff]~ (turn txs.u.sen tail)) + ?~ nin=(find [raw-tx.diff]~ (turn txs.u.sen (cork tail tail))) ~? lverb [dap.bowl %weird-unknown nonce+nonce] sending =. txs.u.sen (oust [u.nin 1] txs.u.sen)
add ifdef CMD
@@ -149,9 +149,11 @@ int main( int argc, char *argv[] ) { char path[MAX_PATH]; char *p; +#ifdef CMD if (strstr(argv[0], "kadnode-ctl")) { return cmd_client(argc, argv); } +#endif conf_init(); conf_setup( argc, argv ); @@ -215,10 +217,11 @@ int main( int argc, char *argv[] ) { } #else int main( int argc, char *argv[] ) ...
fix message pump initial conditions
:: packet-pump-state: state of corresponding |packet-pump :: +$ message-pump-state - $: current=message-num + $: current=_`message-num`1 next=_`message-num`1 unsent-messages=(qeu message) unsent-fragments=(list static-fragment)
Test: disable flaky usb_prl test The usb_prl test continues to be flaky. Disable it until it can be fixed. BRANCH=none TEST=make -j runhosttests
@@ -79,7 +79,7 @@ test-list-host += usb_sm_framework_h0 test-list-host += usb_typec_vpd test-list-host += usb_typec_ctvpd test-list-host += usb_typec_drp_acc_trysrc -test-list-host += usb_prl +#test-list-host += usb_prl # crbug.com/1013701 test-list-host += utils test-list-host += utils_str test-list-host += vboot
ci: raise exception when pytest collect failed
@@ -87,8 +87,6 @@ def is_in_directory(file_path: str, folder: str) -> bool: def get_pytest_dirs(folder: str) -> List[str]: - from io import StringIO - import pytest from _pytest.nodes import Item @@ -102,11 +100,11 @@ def get_pytest_dirs(folder: str) -> List[str]: collector = CollectPlugin() - sys_stdout = sys.stdout -...
Fix clang module support
@@ -110,7 +110,7 @@ end -- # 58 "/usr/include/c++/11/vector" 3 -- # 59 "/usr/include/c++/11/vector" 3 -- -function _get_toolchain_includedirs_for_stlheaders(includedirs, clang) +function _get_toolchain_includedirs_for_stlheaders(target, includedirs, clang) local tmpfile = os.tmpfile() .. ".cc" io.writefile(tmpfile, "#i...
ci(build): replace board matrix array with list A multi-line list can be more merge friendly than a single-line array. PR:
@@ -15,7 +15,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - board: [proton_c, nice_nano, bluemicro840_v1, nrfmicro_13] + board: + - proton_c + - nice_nano + - bluemicro840_v1 + - nrfmicro_13 shield: - boardsource3x4 - corne_left
Do not build tests in release mode Assertions would not be executed. And as a side effect, it causes "unused variable" warnings.
@@ -141,6 +141,8 @@ install_man('scrcpy.1') ### TESTS +# do not build tests in release (assertions would not be executed at all) +if get_option('buildtype') == 'debug' tests = [ ['test_buffer_util', [ 'tests/test_buffer_util.c' @@ -178,3 +180,4 @@ foreach t : tests c_args: ['-DSDL_MAIN_HANDLED']) test(t[0], exe) endfor...
testing some build issues
@@ -3,7 +3,7 @@ AC_PREREQ([2.60]) define(_CLIENT_VERSION_MAJOR, 4) define(_CLIENT_VERSION_MINOR, 3) define(_CLIENT_VERSION_REVISION, 2) -define(_CLIENT_VERSION_BUILD, 0) +define(_CLIENT_VERSION_BUILD, 1) define(_CLIENT_VERSION_IS_RELEASE, true) define(_COPYRIGHT_YEAR, 2020) define(_COPYRIGHT_HOLDERS,[The %s developers]...
MentionText: inline mentions Fixes urbit/landscape#763
@@ -50,7 +50,7 @@ export function Mention(props: { const name = showNickname ? contact?.nickname : cite(ship); return ( - <ProfileOverlay ship={ship} api={api}> + <ProfileOverlay ship={ship} api={api} display="inline"> <Text marginLeft={first? 0 : 1} marginRight={1}
parser: json: use flb_tm
@@ -53,7 +53,7 @@ int flb_parser_json_do(struct flb_parser *parser, msgpack_object *k = NULL; msgpack_object *v = NULL; time_t time_lookup; - struct tm tm = {0}; + struct flb_tm tm = {0}; struct flb_time *t; /* Convert incoming in_buf JSON message to message pack format */
spi_master: fix config check of both in&out phases used in half-duplex mode Add a check in spi_master driver to prevent using both 'trans->length' and 'trans->rxlength' on chips other than ESP32 and ESP32S2 which hardware not support using both TX and RX phases in half-duplex mode
@@ -704,7 +704,9 @@ static SPI_MASTER_ISR_ATTR esp_err_t check_trans_valid(spi_device_handle_t handl SPI_CHECK(!is_half_duplex || !bus_attr->dma_enabled || !rx_enabled || !tx_enabled, "SPI half duplex mode does not support using DMA with both MOSI and MISO phases.", ESP_ERR_INVALID_ARG ); #endif #if !SOC_SPI_HD_BOTH_IN...
Fix check existing task at the end of msgbuffer during TX
@@ -871,8 +871,15 @@ error_return_t MsgAlloc_SetTxTask(ll_container_t *ll_container_pt, uint8_t *data // Check if the message to send size fit into msg buffer if (MsgAlloc_DoWeHaveSpace((void *)((uint32_t)current_msg + size)) == FAILED) { - // message to send don't fit check at the beginning of buffer - // Check space ...
[stat_cache] FAM: check FAMNextEvent() return code
@@ -163,7 +163,7 @@ static handler_t stat_cache_handle_fdevent(server *srv, void *_fce, int revent) splay_tree *node; int ndx; - FAMNextEvent(&scf->fam, &fe); + if (FAMNextEvent(&scf->fam, &fe) < 0) break; /* handle event */
Disable LMS in all.sh when PSA isn't enabled
@@ -1246,6 +1246,7 @@ component_test_full_no_cipher () { scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3 scripts/config.py unset MBEDTLS_SSL_SRV_C scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO + scripts/config.py unset MBEDTLS_LMS_C make msg "test: full minus CIPHER" @@ -1268,6 +1269,7 @@ component_test_crypto_full_n...
sm3: fix function names after the big ossl_ prefix addition.
@@ -59,15 +59,15 @@ static int test_sm3(void) SM3_CTX ctx1, ctx2; unsigned char md1[SM3_DIGEST_LENGTH], md2[SM3_DIGEST_LENGTH]; - if (!TEST_true(sm3_init(&ctx1)) - || !TEST_true(sm3_update(&ctx1, input1, sizeof(input1))) - || !TEST_true(sm3_final(md1, &ctx1)) + if (!TEST_true(ossl_sm3_init(&ctx1)) + || !TEST_true(ossl_...
docs(codes): Windows Support: Audio Controls
@@ -3215,7 +3215,7 @@ export default [ ], documentation: "https://usb.org/sites/default/files/hut1_2.pdf#page=86", os: { - windows: null, + windows: false, linux: true, android: true, macos: true, @@ -3236,7 +3236,7 @@ export default [ ], documentation: "https://usb.org/sites/default/files/hut1_2.pdf#page=86", os: { - ...
Detect WASI_SDK_PREFIX
cmake_minimum_required(VERSION 3.11) # Detect WasiEnv -if(DEFINED ENV{WASI_CC}) +if(DEFINED ENV{WASI_CC} OR DEFINED WASI_SDK_PREFIX) set(WASIENV 1) endif() @@ -49,6 +49,10 @@ if(CLANG OR CLANG_SUFFIX) endif() endif() +if(WASIENV) + set(OUT_FILE "wasm3.wasm") +endif() + if(CLANG_CL) set(CMAKE_C_COMPILER "clang-cl") set(...
Adjust some text position
@@ -34,12 +34,10 @@ This version supports: More blockchains are to be supported. +### Release For full list of new features, please read [aitos.io Release Notes](https://github.com/aitos-io/BoAT-X-Framework/releases). - -**Join us as a BoAT-Mariner and pioneer your IoT+Blockchain path in 2021** - ## Quick Start ### Dep...
Update ipc.c Resolved feedbacks
/* - * Copyright (c) 2006-2021, RT-Thread Development Team + * Copyright (c) 2006-2022, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * 2021-05-30 Meco Man implement rt_mutex_trytake() * 2022-01-07 Gabriel Moving __on_rt_xxxxx_hook to ipc.c * 2022-01-24 THEWON let rt_mutex_take return thread->err...
Expand Asset doc for Visual Studio
@@ -74,6 +74,7 @@ To add the build step right click the project and click properties. From there g If the step is failing to complete then make sure that both python and the 32blit pip package is installed. After the build completes you will want to add the two files it generates to the project. (assets.cpp and assets....
vhost_user: Fix setting MTU using uninitialized variable
@@ -1359,8 +1359,6 @@ vhost_user_create_ethernet (vnet_main_t * vnm, vlib_main_t * vm, if (error) clib_error_report (error); - - vnet_sw_interface_set_mtu (vnm, vui->sw_if_index, 9000); } /* @@ -1471,6 +1469,7 @@ vhost_user_create_if (vnet_main_t * vnm, vlib_main_t * vm, vhost_user_create_ethernet (vnm, vm, vui, hwaddr...
Resetting sessionId on session end
@@ -830,7 +830,13 @@ namespace MAT_NS_BEGIN if (m_resetSessionOnEnd) { + // reset the time of the session to 0 and get a new sessionId m_sessionStartTime = 0; + if (logSessionData!=nullptr) + { + logSessionData->CreateLogSessionData(); + LOG_TRACE("Resetting session data on session end"); + } } break;
uri: fix a possible NULL dereferencing
@@ -213,6 +213,8 @@ _u_parse(const char *query, const char *separator) dbg_err_if(separator == NULL); q = u_strdup(query); h = hash_create3(HASHCOUNT_T_MAX, 0, 0); + if (!q || !h) + goto err; /* foreach name=value pair... */ for (src = q; (tok = strtok_r(src, separator, &pp)) != NULL; src = NULL) { @@ -268,6 +270,7 @@ ...
[libc]fix bug of _isatty_r()
* 2021-02-11 Meco Man remove _gettimeofday_r() and _times_r() * 2020-02-13 Meco Man re-implement exit() and abort() * 2020-02-21 Meco Man improve and beautify syscalls + * 2020-02-24 Meco Man fix bug of _isatty_r() */ #include <reent.h> @@ -89,12 +90,14 @@ int _isatty_r(struct _reent *ptr, int fd) { if (fd >=0 && fd < ...
add parsing support for new macros used by beegfs install
@@ -42,6 +42,8 @@ my $Install = ""; my $chrootInstall = ""; my $groupInstall = ""; my $groupChrootInstall = ""; +my $addrepo = ""; +my $beegfsrepo = ""; # parse package command macro's from input file open( IN, "<$basename.tex" ) || die __LINE__ . ": Cannot open file -> $file\n$!"; @@ -49,23 +51,23 @@ while( my $line =...
fixed gaussian distribution bug
@@ -187,14 +187,21 @@ for i in range(len(lines)): for ll in np.arange(len(array)): while array[ll] < min_cutoff: array[ll] = np.random.normal(loc=np.float(values[0]),scale=np.float(values[1]),size=1) + del min_cutoff elif 'min_cutoff' not in vars() and 'max_cutoff' in vars(): for ll in np.arange(len(array)): while arra...
Fix post-condition in algorithm_do_this
@@ -31,7 +31,7 @@ static int algorithm_do_this(OSSL_PROVIDER *provider, void *cbdata) int first_operation = 1; int last_operation = OSSL_OP__HIGHEST; int cur_operation; - int ok = 0; + int ok = 1; if (data->operation_id != 0) first_operation = last_operation = data->operation_id; @@ -77,9 +77,9 @@ static int algorithm_...
nat: print hash table parameters in CLI Type: improvement
@@ -209,7 +209,7 @@ done: } static clib_error_t * -nat44_show_hash_commnad_fn (vlib_main_t * vm, unformat_input_t * input, +nat44_show_hash_command_fn (vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) { snat_main_t *sm = &snat_main; @@ -252,6 +252,17 @@ nat44_show_hash_commnad_fn (vlib_main_t * vm,...
libmfu: add major, minor, patch version Added the major, minor, and patch version to the compiled libmfu.so The initial version is 0.0.0
+# Version for the shared mfu library +set(MFU_VERSION_MAJOR 0) # Incompatible API changes +set(MFU_VERSION_MINOR 0) # Backwards-compatible functionality +set(MFU_VERSION_PATCH 0) # Backwards-compatible fixes +set(MFU_VERSION ${MFU_VERSION_MAJOR}.${MFU_VERSION_MINOR}.${MFU_VERSION_PATCH}) + # todo re-asses if all of th...
enable standard turtle only on brushless for now
#include "drv_time.h" #include "profile.h" +#ifdef BRUSHLESS_TARGET +// TODO: enable for brushed too #define STANDARD_TURTLE +#endif + #define TURTLE_TIMEOUT 1e6 //1 second timeout for auto turtle #define THROTTLE_UP 1.0 @@ -51,7 +55,10 @@ extern int onground; extern float GEstG[3]; extern float rx[]; extern profile_t ...
Cellular debug print fix only: erroneous length. The getString() static function, used to read strings such as the manufacturer name in u_cell_info.c, prints out the wrong thing in its informational print: the wrong variable is printed for the string length. This is now fixed.
@@ -137,7 +137,7 @@ static int32_t getString(uAtClientHandle_t atHandle, if ((bytesRead >= 0) && (errorCodeOrSize == 0)) { uPortLog("U_CELL_INFO: ID string, length %d character(s)," " returned by %s is \"%s\".\n", - errorCodeOrSize, pCmd, pBuffer); + bytesRead, pCmd, pBuffer); errorCodeOrSize = bytesRead; } else { erro...
coredump: Fixes exception stack frame structure indicator Initializes exception stack frame EXIT field to indicate stack frame format for 'espcoredump'.
@@ -127,6 +127,10 @@ static void esp_core_dump_write(XtExcFrame *frame, core_dump_write_config_t *wri if (tasks[i].pxTCB == xTaskGetCurrentTaskHandleForCPU(xPortGetCoreID())) { // set correct stack top for current task tasks[i].pxTopOfStack = (StackType_t *)frame; + // This field is not initialized for crashed task, bu...
make onboard sticky
@@ -661,6 +661,11 @@ applyrules(Client *c) desktopicons = 1; newdesktop = 1; } + + if (strstr(r->class, "Onboard") != NULL) { + c->issticky=1; + } + c->isfloating = r->isfloating; c->tags |= r->tags; for (m = mons; m && m->num != r->monitor; m = m->next);
cc26xx ieee-mode.c: limit the time spend in waiting for transmissions to finish
@@ -167,6 +167,9 @@ static uint8_t rf_stats[16] = { 0 }; /* How long to wait for the RF to react on CMD_ABORT: around 1 msec */ #define RF_TURN_OFF_WAIT_TIMEOUT (RTIMER_SECOND >> 10) +/* How long to wait for the RF to finish TX of a packet or an ACK */ +#define TX_FINISH_WAIT_TIMEOUT (RTIMER_SECOND >> 7) + #define LIMI...
Add additional udivsi/divsi tests
#include <stdio.h> +void printRawHex(unsigned int value) +{ + int i; + char ch; + + putchar('>'); + for (i = 7; i >= 0; i--) { + ch = (value >> (i * 4)) & 0xf; + if (ch < 10) + putchar(ch + '0'); + else + putchar(ch - 10 + 'a'); + } +} + void print64bit(long long int value) { unsigned char tmp[8]; @@ -78,7 +93,10 @@ in...
build: filter_wasm: Build filter_wasm only when FLB_WASM is enabled
@@ -310,7 +310,9 @@ REGISTER_FILTER_PLUGIN("filter_stdout") REGISTER_FILTER_PLUGIN("filter_geoip2") REGISTER_FILTER_PLUGIN("filter_nightfall") +if (FLB_WASM) REGISTER_FILTER_PLUGIN("filter_wasm") +endif () # Register external input and output plugins if(EXT_IN_PLUGINS)
examples/system/light_sleep: fix uart garbled output
@@ -107,6 +107,10 @@ static esp_err_t uart_initialization(void) //Install UART driver, and get the queue. ESP_RETURN_ON_ERROR(uart_driver_install(EXAMPLE_UART_NUM, EXAMPLE_UART_BUF_SIZE, EXAMPLE_UART_BUF_SIZE, 20, &uart_evt_que, 0), TAG, "Install uart failed"); + if (EXAMPLE_UART_NUM == CONFIG_ESP_CONSOLE_UART_NUM) { +...
Remove unnecessary attach step
@@ -1248,39 +1248,6 @@ static void _ocf_mng_cache_set_valid(ocf_cache_t cache) env_bit_set(ocf_cache_state_running, &cache->cache_state); } -static int _ocf_mngt_cache_add_cores_t_clean_pol(ocf_cache_t cache) -{ - int clean_type = cache->conf_meta->cleaning_policy_type; - int i, j, no; - int result; - - if (cleaning_po...
Support dot PY_NAMESPACE for python3.
@@ -217,6 +217,10 @@ def onpy3_srcs(unit, *args): if unit.get('MODULE_TYPE') == 'PROGRAM': py3_program(unit) + py_namespace_value = unit.get('PY_NAMESPACE_VALUE') + if py_namespace_value == ".": + ns = "" + else: ns = (unit.get('PY_NAMESPACE_VALUE') or unit.path()[3:].replace('/', '.')) + '.' cython_directives = []
Update cellular interface in manifest.
@@ -130,7 +130,7 @@ dependencies: path: "FreeRTOS/Demo/ThirdParty/Partner-Supported-Demos" - name: "FreeRTOS-Cellular-Interface" - version: "fd61654" + version: "a07c8c7" repository: type: "git" url: "https://github.com/FreeRTOS/FreeRTOS-Cellular-Interface.git"
os/kernel/Kconfig : Fix typo and Add missed parenthesis Fix typo : application, will Add close parenthesis
@@ -266,7 +266,7 @@ config TASK_NAME_SIZE Spcifies that maximum size of a task name to save in the TCB. Useful if scheduler instrumentation is selected. Set to zero to disable. Excludes the NUL terminator; the actual allocated size - willl be TASK_NAME_SIZE + 1. The default of 31 then results in + will be TASK_NAME_SIZ...
SOVERSION bump to version 2.24.24
@@ -66,7 +66,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_ # set version of the library set(LIBYANG_MAJOR_SOVERSION 2) set(LIBYANG_MINOR_SOVERSION 24) -set(LIBYANG_MICRO_SOVERSION 23) +set(LIBYANG_MICRO_SOVERSION 24) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG...
Completions: Add clause name suggestions
@@ -160,6 +160,11 @@ function __fish_kdb_subcommand_fstab_needs_filesystem -d 'Check if the subcomman and test (__number_arguments_input_left) -eq 5 end +function __fish_kdb_subcommand_info_needs_clause_name -d 'Check if the subcommand info needs a clause name completion' + __fish_kdb_subcommand_includes info + and tes...
Structure size updated to the 16 bytes * N
@@ -29,12 +29,12 @@ typedef struct WL_Config_s { uint32_t wr_size; /*!< Minimum amount of bytes per one block at write operation: 1...*/ uint32_t version; /*!< A version of current implementatioon. To erase and reallocate complete memory this ID must be different from id before.*/ size_t temp_buff_size; /*!< Size of te...
Reset render data when restarting in oculus_mobile; Fixes a crash where rendering would occur with the old Lua state after a restart.
@@ -462,6 +462,8 @@ void bridgeLovrUpdate(BridgeLovrUpdateData *updateData) { luax_clearerror(T); if (lua_resume(T, 1) != LUA_YIELD) { if (lua_type(T, -1) == LUA_TSTRING && !strcmp(lua_tostring(T, -1), "restart")) { + state.renderCallback = NULL; + state.renderUserdata = NULL; lua_close(L); bridgeLovrInitState(); } els...
tests/pup/motors: Read logged data in script.
@@ -27,10 +27,29 @@ motor.control.log.start(DURATION) motor.run_target(500, 360) # Wait so we can also log hold capability, then turn off the motor completely. -wait(1000) +wait(100) motor.stop() # Save the data by printing it. Pybricksdev will capture the printed # data and save it to the given path relative to this s...
u3: tweaks +stir jet for refcount clarity
} } + static u3_noun + _last_k(u3_noun zyc, u3_noun naz) + { + u3_noun pro = _last(zyc, naz); + u3z(zyc); u3z(naz); + return pro; + } + static u3_noun _next(u3_noun tub) { puq_vex = *top; u3a_pop(sizeof(u3_noun)); - { - u3_noun p_gaw = _last(p_vex, p_wag); - u3z(p_vex); u3z(p_wag); - p_wag = p_gaw; - } - + p_wag = _las...
static_size: Add missing semaphore stub functions
@@ -181,6 +181,44 @@ int32_t uPortMutexUnlock(const uPortMutexHandle_t mutexHandle) (void) mutexHandle; return 0; } + +int32_t uPortSemaphoreCreate(uPortSemaphoreHandle_t *pSemaphoreHandle, + uint32_t initialCount, + uint32_t limit) +{ + (void)pSemaphoreHandle; + (void)initialCount; + (void)limit; + return 0; +} +int32...
firenze-pci: Fix infinite loop in firenze_pci_add_loc_code() If ibm,slot-location-code isn't in a PCI device's parent node the loop to search for it will never terminate since p = np->parent is always going to return the same result. Fixes: ("PCI: create optional loc-code platform callback")
@@ -987,7 +987,7 @@ void firenze_pci_add_loc_code(struct dt_node *np, struct pci_device *pd) * prefer fully-qualified slot-location-code, walk-up parent tree * to find one */ - for (p = np->parent; p; p = np->parent) { + for (p = np->parent; p; p = p->parent) { blcode = dt_prop_get_def(p, "ibm,slot-location-code", NULL...
write contaminating and normal xml test report to different file Tested-by: Build Bot
@@ -173,7 +173,7 @@ MACRO(DEFINE_MOCKTEST plugin test) --gtest_filter="ContaminatingUnitTest.*" --gtest_throw_on_failure=1 --gtest_print_time=1 - --gtest_output=xml:"${PROJECT_BINARY_DIR}/REPORT_${plugin}_${test}.xml") + --gtest_output=xml:"${PROJECT_BINARY_DIR}/REPORT_${plugin}_${test}_contaminating.xml") SET_TESTS_PR...
reset the hash after finalizing it
@@ -295,6 +295,9 @@ int s2n_hmac_digest_two_compression_rounds(struct s2n_hmac_state *state, void *o return 0; } + /* Can't reuse a hash after it has been finalized, so reset and push another block in */ + GUARD(s2n_hash_reset(&state->inner)); + /* No-op s2n_hash_update to normalize timing and guard against Lucky13. Th...
Warnings: implicit conversion changes signedness
@@ -168,7 +168,7 @@ int grib_nearest_find_multiple( int ret = 0; long i = 0; size_t len = 4; - int flags = GRIB_NEAREST_SAME_GRID | GRIB_NEAREST_SAME_DATA; + const unsigned long flags = GRIB_NEAREST_SAME_GRID | GRIB_NEAREST_SAME_DATA; if (values) rvalues = qvalues; @@ -306,8 +306,8 @@ int grib_nearest_find_generic( dou...
Removing unneeded use of bpf_probe_read in funcslower
@@ -174,10 +174,7 @@ int trace_return(struct pt_regs *ctx) data.kernel_stack_id = stacks.get_stackid(ctx, 0 | BPF_F_REUSE_STACKID); if (data.kernel_stack_id >= 0) { - // populate extras to fix the kernel stack - struct pt_regs regs = {}; - bpf_probe_read(&regs, sizeof(regs), (void *)ctx); - u64 ip = PT_REGS_IP(&regs); ...
Fix quality calculation for float32 outputs
@@ -234,7 +234,7 @@ void compute_error_metrics( assert(img2->data_type == ASTCENC_TYPE_F32); float* data32 = static_cast<float*>(img2->data[z]); - color1 = vfloat4( + color2 = vfloat4( data32[(4 * xsize2 * y) + (4 * x )], data32[(4 * xsize2 * y) + (4 * x + 1)], data32[(4 * xsize2 * y) + (4 * x + 2)],
docs: pl/container fixes: Move note in Examples section to emphasize container ID depends on configuration Add creating a docker group in Docker Install instructions for CentOS 6
@@ -354,6 +354,14 @@ gp_segment_id | plcontainer_show_local_config <topic id="topic9" xml:lang="en"> <title id="pz215232">Examples</title> <body> + <p>The values in the <codeph># container</codeph> lines of the examples, + <codeph>plc_python_shared</codeph> and <codeph>plc_r_shared</codeph>, are the + <codeph>id</codep...
Add source installation instructions for Centos 7 Add source installation instructions for Centos 7
- [Ubuntu](#ubuntu---source) - [Fedora](#fedora---source) - [openSUSE](#opensuse---source) + - [Centos](#centos---source) - [Amazon Linux](#amazon-linux---source) * [Older Instructions](#older-instructions) @@ -388,6 +389,55 @@ sudo make install popd ``` +## Centos - Source + +For Centos 7.6 only + +### Install build d...
Fix lseek's bug in smartfs lseek should set the file offset to the size of the file plus offset
@@ -1040,7 +1040,7 @@ static off_t smartfs_seek_internal(struct smartfs_mountpt_s *fs, struct smartfs_ break; case SEEK_END: - newpos = sf->entry.datlen - offset; + newpos = sf->entry.datlen + offset; break; }
general: removed vcs lines from IDEA
<project version="4"> <component name="VcsDirectoryMappings"> <mapping directory="$PROJECT_DIR$" vcs="Git" /> - <mapping directory="$PROJECT_DIR$/build/googletest-src" vcs="Git" /> - <mapping directory="$PROJECT_DIR$/cmake-build-debug/googletest-src" vcs="Git" /> </component> </project>
bugfix: if the len of iv is not 96-bit, y0 can be calculated incorrectly An initialization vector IV can have any number of bits between 1 and 2^64. So it should be filled to the lower 64-bit in the last step when computing ghash.
@@ -278,8 +278,7 @@ int mbedtls_gcm_starts( mbedtls_gcm_context *ctx, else { memset( work_buf, 0x00, 16 ); - MBEDTLS_PUT_UINT32_BE( iv_len >> 29, work_buf, 8 ); - MBEDTLS_PUT_UINT32_BE( iv_len << 3, work_buf, 12 ); + MBEDTLS_PUT_UINT64_BE( iv_len * 8, work_buf, 8 ); p = iv; while( iv_len > 0 )
Fix typo in environment tab hashtable
@@ -1280,7 +1280,7 @@ VOID PhpInitializeEnvironmentTree( Context->NodeList = PhCreateList(100); Context->NodeRootList = PhCreateList(30); Context->NodeHashtable = PhCreateHashtable( - sizeof(PHP_PROCESS_ENVIRONMENT_TREENODE), + sizeof(PPHP_PROCESS_ENVIRONMENT_TREENODE), PhpEnvironmentNodeHashtableEqualFunction, PhpEnvi...
build: adding license badget to readme
@@ -6,6 +6,7 @@ Software-Defined Radio Digital Signal Processing Library - [http://liquidsdr.org](http://liquidsdr.org) [![Build Status](https://travis-ci.org/jgaeddert/liquid-dsp.svg?branch=master)](https://travis-ci.org/jgaeddert/liquid-dsp) +[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=fla...
README.md: Added link to PyVMA.
@@ -59,4 +59,5 @@ See **[Documentation](https://gpuopen-librariesandsdks.github.io/VulkanMemoryAll # See also - **[Awesome Vulkan](https://github.com/vinjn/awesome-vulkan)** - a curated list of awesome Vulkan libraries, debuggers and resources. -- **[vulkan-malloc](https://github.com/dylanede/vulkan-malloc)** - Vulkan ...
Update the note of the gpio_intr_enable function
@@ -72,7 +72,7 @@ esp_err_t gpio_set_intr_type(gpio_num_t gpio_num, gpio_int_type_t intr_type); /** * @brief Enable GPIO module interrupt signal * - * @note Please do not use the interrupt of GPIO36 and GPIO39 when using ADC or Wi-Fi with sleep mode enabled. + * @note Please do not use the interrupt of GPIO36 and GPIO3...
HV: add Px Cx support for A3950 SoC Intel Atom A3950 SoC also can be used in Acrn, and it has same Cx data as Atom A3960 SoC.
@@ -34,6 +34,23 @@ struct cpu_cx_data cx_a3960[] = { {{SPACE_SYSTEM_IO, 0x8, 0, 0, 0x419}, 0x3, 0x96, 0x0A} /* C3 */ }; +/* The table includes cpu px info of Intel A3950 SoC */ +struct cpu_px_data px_a3950[] = { + {0x7D0, 0, 0xA, 0xA, 0x1400, 0x1400}, /* P0 */ + {0x76C, 0, 0xA, 0xA, 0x1300, 0x1300}, /* P1 */ + {0x708, ...
Keys in a mandatory SvcParam MUST NOT appear more than once.
@@ -1650,7 +1650,7 @@ zadd_rdata_svcb_check_wireformat() { size_t i; uint8_t paramkeys[65536]; - uint16_t key; + int key, prev_key = - 1; memset(paramkeys, 0, sizeof(paramkeys)); /* @@ -1712,7 +1712,10 @@ zadd_rdata_svcb_check_wireformat() */ if (key == SVCB_KEY_MANDATORY) zc_error_prev_line("mandatory MUST not be incl...
baseboard/kukui: Free up additional flash space BRANCH=none TEST=make buildall Code-Coverage: Zoss
#define CONFIG_USB_PD_VBUS_DETECT_TCPC /* Modules we want to exclude */ +#undef CONFIG_ACCEL_SPOOF_MODE #undef CONFIG_CMD_ACCELSPOOF #undef CONFIG_CMD_BATTFAKE #undef CONFIG_CMD_FLASH #undef CONFIG_CMD_CRASH #undef CONFIG_CMD_HCDEBUG #undef CONFIG_CMD_IDLE_STATS +#undef CONFIG_CMD_KEYBOARD #undef CONFIG_CMD_MFALLOW #un...
LPC5xx: Connect HW_VERS6 and HW_VERS7 to reset functionality
@@ -52,6 +52,8 @@ void gpio_init(void) // Configure pins. IOCON->PIO[PIN_PIO_PORT][LED_CONNECTED] = IOCON_FUNC0 | IOCON_DIGITAL_EN; + IOCON->PIO[PIN_PIO_PORT][PIN_HW_VERS_6] = IOCON_FUNC0 | IOCON_MODE_PULLUP | IOCON_DIGITAL_EN | IOCON_OPENDRAIN_EN; + IOCON->PIO[PIN_PIO_PORT][PIN_HW_VERS_7] = IOCON_FUNC0 | IOCON_MODE_PU...
Tests: terminate unitd process on exit().
@@ -4,6 +4,7 @@ import sys import stat import time import fcntl +import atexit import shutil import signal import argparse @@ -188,10 +189,9 @@ class TestUnit(unittest.TestCase): self._print_log() def stop(self): - if self._started: self._stop() - self.stop_processes() + atexit.unregister(self.stop) def _run(self): bui...
gall: make spore-tag a TODO: still getting kiln: %base not installed
:: pupal gall core, on upgrade :: =< =* adult-gate . - =| spore-tag=@tas + =| spore-tag=@ud =| =spore |= [now=@da eny=@uvJ rof=roof] =* pupal-gate . :: ++ load |^ |= old=spore-any - =. spore-tag `@tas`-.old + =. spore-tag `@ud`-.old =? old ?=(%7 -.old) (spore-7-to-8 old) =? old ?=(%8 -.old) (spore-8-to-9 old) ?> ?=(%9 ...
Add compile help to specify library and header locations.
@@ -29,6 +29,22 @@ The easiest way to install libxml-ruby is via RubyGems. To install: <tt>gem install libxml-ruby</tt> +If the extension compile process cannot find libxml2, you may need to indicate +the location of the libxml2 configuration utility as it is used to find the +required header and include files. (If you...
Remove unused structures.
@@ -557,28 +557,6 @@ sonewconn(struct socket *head, int connstatus) } -/* From /src/sys/sys/sysproto.h */ -struct sctp_generic_sendmsg_args { - int sd; - caddr_t msg; - int mlen; - caddr_t to; - socklen_t tolen; /* was __socklen_t */ - struct sctp_sndrcvinfo * sinfo; - int flags; -}; - -struct sctp_generic_recvmsg_args...
Optimize `console` module for macOS app
@@ -288,6 +288,9 @@ def input(prompt=""): prompt: Text printed before the user's input without a newline. """ + if __platform__ is macOS: + return builtins.input(prompt) + if __host__ is widget: return None @@ -307,13 +310,14 @@ def input(prompt=""): return str(userInput) -if __platform__ is iOS: - __PyOutputHelper__ =...
[MQTT5] Add VHDR property encodings
@@ -121,14 +121,43 @@ typedef enum { } mqtt_vhdr_connack_flags_t; /*---------------------------------------------------------------------------*/ -#if MQTT_311 typedef enum { MQTT_SUBACK_RET_QOS_0 = 0x00, MQTT_SUBACK_RET_QOS_1 = 0x01, MQTT_SUBACK_RET_QOS_2 = 0x02, MQTT_SUBACK_RET_FAIL = 0x08, } mqtt_suback_ret_code_t; ...
Normalize manufacturer name TUYATEC-xdqihhgb --> Tuyatec
@@ -6840,6 +6840,11 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event) } QString str = ia->toString().simplified(); + if (str.startsWith(QLatin1String("TUYATEC"))) + { + str = QLatin1String("Tuyatec"); // normalize TUYATEC-xdqihhgb --> Tuyatec + } + if (!str.isEmpty()) { if (i->manufacturer()...
Add link to Gentoo Ebuild in README
@@ -31,6 +31,11 @@ For Arch Linux, two [AUR] packages have been created by users: [AUR]: https://wiki.archlinux.org/index.php/Arch_User_Repository +For Gentoo, an [Ebuild] is available: [`scrcpy/`][ebuild-link]. + +[Ebuild]: https://wiki.gentoo.org/wiki/Ebuild +[ebuild-link]: https://github.com/maggu2810/maggu2810-over...
[ctr/lua] Suppress VM error propagation
@@ -507,11 +507,8 @@ func executeTx(bs *state.BlockState, tx *types.Tx, blockNo uint64, ts int64) err } else { err = contract.Call(contractState, txBody.Payload, recipient, tx.Hash, bcCtx, bs.ReceiptTx()) } - if err != nil { - _ = sqlTx.RollbackToSavepoint() - //FIXME divide system error and vm error(logical) - // - vm...
mcu/nrf5340: Pins should be checked for -1 Pins hsould be checked for -1 for invalidity
@@ -413,7 +413,7 @@ syscfg.vals: OS_TICKS_PER_SEC: 128 syscfg.restrictions: - - "!UART_0 || (UART_0_PIN_TX && UART_0_PIN_RX)" - - "!UART_1 || (UART_1_PIN_TX && UART_1_PIN_RX)" - - "!UART_2 || (UART_2_PIN_TX && UART_2_PIN_RX)" - - "!UART_3 || (UART_3_PIN_TX && UART_3_PIN_RX)" + - "!UART_0 || (UART_0_PIN_TX != -1 && UART...