message
stringlengths
6
474
diff
stringlengths
8
5.22k
decisions: add _
@@ -113,7 +113,7 @@ Explanations of the template are in [EXPLANATIONS.md](../EXPLANATIONS.md). ```mermaid flowchart LR - s((Start)) --> Drafts --> In Discussion -> In Progress -> Decided -> Partially Implemented -> Implemented + s((Start)) --> Drafts --> In_Discussion -> In_Progress -> Decided -> Partially_Implemented ...
Setup: Update DelayLoadDLLs
<AdditionalLibraryDirectories>$(SolutionDir)..\..\phlib\bin\$(Configuration)$(PlatformArchitecture);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <SubSystem>Windows</SubSystem> <MinimumRequiredVersion>6.01</MinimumRequiredVersion> - <DelayLoadDLLs>%(DelayLoadDLLs)</DelayLoadDLLs> + <DelayLoadDLLs>advap...
Support SmartThings motion and contact sensors By GitHub issue
@@ -78,6 +78,8 @@ static const SupportedDevice supportedDevices[] = { { VENDOR_BUSCH_JAEGER, "RB01", bjeMacPrefix }, { VENDOR_BUSCH_JAEGER, "RM01", bjeMacPrefix }, { VENDOR_CENTRALITE, "Motion Sensor-A", emberMacPrefix }, + { VENDOR_CENTRALITE, "3325-S", emberMacPrefix }, + { VENDOR_CENTRALITE, "3321-S", emberMacPrefix...
Increase RAM allocation for CRT in STM746
@@ -203,7 +203,7 @@ nf_set_linker_options(${NANOCLR_PROJECT_NAME}.elf TRUE) # the size of the CLR managed heap is defined here ################################################### set_property(TARGET ${NANOBOOTER_PROJECT_NAME}.elf APPEND_STRING PROPERTY LINK_FLAGS ",--defsym=__main_stack_size__=0x400,--defsym=__process_...
SOVERSION bump to version 6.4.7
@@ -68,7 +68,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 6) set(SYSREPO_MINOR_SOVERSION 4) -set(SYSREPO_MICRO_SOVERSION 6) +set(SYSREPO_MICRO_SO...
send multiple 1xx
@@ -256,6 +256,9 @@ builder { "HTTP/1.1 100 Continue", "link: </index.js>; rel=preload", "", + "HTTP/1.1 100 Continue", + "link: </index.js>; rel=preload", + "", "", ); sleep 1.1;
mp: fix return value handling on msgpack_unpack()
static inline int mp_count(void *data, size_t bytes, msgpack_zone *zone) { int c = 0; + int ret; size_t off = 0; msgpack_zone *t = NULL; msgpack_object obj; @@ -39,9 +40,15 @@ static inline int mp_count(void *data, size_t bytes, msgpack_zone *zone) t = zone; } - while (msgpack_unpack(data, bytes, &off, t, &obj) == MSGP...
remove FCLK_CLK0 from base_system
-# Create processing_system7 -cell xilinx.com:ip:processing_system7:5.5 ps_0 { - PCW_IMPORT_BOARD_PRESET cfg/red_pitaya.xml - PCW_USE_S_AXI_HP0 1 -} { - M_AXI_GP0_ACLK ps_0/FCLK_CLK0 - S_AXI_HP0_ACLK ps_0/FCLK_CLK0 -} - -# Create all required interconnections -apply_bd_automation -rule xilinx.com:bd_rule:processing_sys...
tests/run-tests: Make diff tool user configurable.
@@ -21,6 +21,9 @@ else: # mpy-cross is only needed if --via-mpy command-line arg is passed MPYCROSS = os.getenv('MICROPY_MPYCROSS', '../mpy-cross/mpy-cross') +# For diff'ing test output +DIFF = os.getenv('MICROPY_DIFF', 'diff -u') + # Set PYTHONIOENCODING so that CPython will use utf-8 on systems which set another enco...
Don't accidentally return the end index in input for dynamic arrays.
:: find the word index of the actual data. =. win (div (rash wor hex) 32) :: read the elements from their location. + %- tail %^ decode-array-n ~[t.typ] +(win) (rash (snag win wos) hex) ::
Add dofile function. Abstracts the actually running of a file from the require function, so a file can be easily evaluated without being cached.
circular dependencies." @{}) -(defn require - "Require a module with the given name. Will search all of the paths in - module/paths, then the path as a raw file path. Returns the new environment - returned from compiling and running the file." +(defn dofile + "Evaluate a file in a new environment and return the new env...
[mod_trigger_b4_dl] gdbm_reorganize once a day
@@ -536,7 +536,7 @@ static void mod_trigger_b4_dl_trigger_gdbm(GDBM_FILE db, const time_t cur_ts, co if (okey.dptr) free(okey.dptr); /* reorg once a day */ - if ((cur_ts % (60 * 60 * 24) != 0)) gdbm_reorganize(db); + if ((cur_ts % (60 * 60 * 24) == 0)) gdbm_reorganize(db); } TRIGGER_FUNC(mod_trigger_b4_dl_handle_trigge...
Rename "Inkjet Printer" test queue to "Office Printer" to reflect a more generic focus.
@@ -218,9 +218,9 @@ main(int argc, // I - Number of command-line arguments papplSystemSetLocation(system, "Test Lab 42"); papplSystemSetOrganization(system, "Lakeside Robotics"); - printer = papplPrinterCreate(system, /* printer_id */0, "Inkjet Printer", "pwg_common-300dpi-600dpi-srgb_8", "file:///dev/null"); + printer...
output: dont check tls vars if tmp is NULL (CID 156536)
@@ -297,7 +297,7 @@ int flb_output_set_property(struct flb_output_instance *out, char *k, char *v) } } #ifdef FLB_HAVE_TLS - else if (prop_key_check("tls", k, len) == 0) { + else if (prop_key_check("tls", k, len) == 0 && tmp) { if (strcasecmp(tmp, "true") == 0 || strcasecmp(tmp, "on") == 0) { out->use_tls = FLB_TRUE; }...
Try to avoid a compiler warning about using fxid uninitialized. Mark Dilger, with a couple of stray semicolons removed by me. Discussion:
@@ -555,7 +555,7 @@ check_tuple_header_and_visibilty(HeapTupleHeader tuphdr, HeapCheckContext *ctx) { uint16 infomask = tuphdr->t_infomask; bool header_garbled = false; - unsigned expected_hoff;; + unsigned expected_hoff; if (ctx->tuphdr->t_hoff > ctx->lp_len) { @@ -1368,24 +1368,26 @@ check_mxid_valid_in_rel(MultiXact...
Review 2017-03-13: replace magic number with appropriate string len
@@ -3673,19 +3673,23 @@ START_TEST(test_byte_info_at_end) END_TEST /* Test position information from errors */ +#define PRE_ERROR_STR "<doc></" +#define POST_ERROR_STR "wombat></doc>" START_TEST(test_byte_info_at_error) { - const char *text = "<doc></wombat></doc>"; + const char *text = PRE_ERROR_STR POST_ERROR_STR; if...
docs/fingerprint: Add links to info on fuzz testing BRANCH=none TEST=view in gitiles
@@ -121,6 +121,12 @@ See the [Unit Tests] documentation for details on how to [run the unit tests]. ## Build and run the `host_command` fuzz test +<!-- mdformat off(b/139308852) --> +*** note +NOTE: For more details on fuzzing, see [Fuzz Testing in ChromeOS]. +*** +<!-- mdformat on --> + ```bash (chroot) ~/trunk/src/pl...
Fix regression in EVP_DigestInit_ex: crash when called with NULL type
@@ -170,8 +170,15 @@ int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl) ctx->provctx = NULL; } - if (type != NULL) + if (type != NULL) { ctx->reqdigest = type; + } else { + if (ctx->digest == NULL) { + ERR_raise(ERR_LIB_EVP, EVP_R_NO_DIGEST_SET); + return 0; + } + type = ctx->digest; + } /* TODO(3...
core/cortex-m0/irq_handler.h: Format with clang-format BRANCH=none TEST=none
task_end_irq_handler(ret); \ } \ const struct irq_priority __keep IRQ_PRIORITY(irq) \ - __attribute__((section(".rodata.irqprio"))) \ - = {irq, priority} + __attribute__((section(".rodata.irqprio"))) = { irq, \ + priority } #else /* CONFIG_TASK_PROFILING */ /* No Profiling : connect directly the IRQ vector */ #define D...
Fix incorrect variable datatype. Since slot_keep_segs indicates the number of WAL segments not LSN, its datatype should not be XLogRecPtr. Back-patch to v13 where this issue was added. Reported-by: Atsushi Torikoshi Author: Atsushi Torikoshi, tweaked by Fujii Masao Discussion:
@@ -9601,7 +9601,7 @@ KeepLogSeg(XLogRecPtr recptr, XLogSegNo *logSegNo) /* Cap by max_slot_wal_keep_size ... */ if (max_slot_wal_keep_size_mb >= 0) { - XLogRecPtr slot_keep_segs; + uint64 slot_keep_segs; slot_keep_segs = ConvertToXSegs(max_slot_wal_keep_size_mb, wal_segment_size);
Initialize PSA crypto in test_suite_x509write for RSA signing tests
@@ -93,6 +93,8 @@ void x509_csr_check( char * key_file, char * cert_req_check_file, int md_type, memset( &rnd_info, 0x2a, sizeof( mbedtls_test_rnd_pseudo_info ) ); + USE_PSA_INIT( ); + mbedtls_pk_init( &key ); TEST_ASSERT( mbedtls_pk_parse_keyfile( &key, key_file, NULL, mbedtls_test_rnd_std_rand, NULL ) == 0 ); @@ -140...
in_windows_exporter_metrics: Fix brace styles
@@ -41,8 +41,7 @@ static int wmi_coinitialize(struct flb_we *ctx, char* wmi_namespace) /* Initialize COM library */ hr = CoInitializeEx(0, COINIT_MULTITHREADED); - if (FAILED(hr)) - { + if (FAILED(hr)) { flb_plg_error(ctx->ins, "Failed to initialize COM library. Error code = %x", hr); return -1; } @@ -65,8 +64,7 @@ sta...
input: on socket collector creation, return collector id
@@ -796,6 +796,7 @@ int flb_input_collector_running(int coll_id, struct flb_input_instance *in) return coll->running; } + int flb_input_pause_all(struct flb_config *config) { int paused = 0; @@ -942,7 +943,7 @@ int flb_input_set_collector_socket(struct flb_input_instance *in, mk_list_add(&collector->_head, &config->col...
component/bt: Unlock reserve of SCN 1 for HFP
@@ -1522,11 +1522,10 @@ UINT8 BTM_AllocateSCN(void) { UINT8 x; BTM_TRACE_DEBUG ("BTM_AllocateSCN\n"); - // stack reserves scn 1 for HFP, HSP we still do the correct way for (x = 1; x < BTM_MAX_SCN; x++) { - if (!btm_cb.btm_scn[x]) { - btm_cb.btm_scn[x] = TRUE; - return (x + 1); + if (!btm_cb.btm_scn[x - 1]) { + btm_cb....
add 32bit gcc support to docker
FROM ubuntu:16.04 # system basics -RUN apt-get update -RUN apt-get -y install build-essential git curl python python-virtualenv python-dev +RUN apt-get update && apt-get -y install build-essential gcc-multilib g++-multilib lib32z1 git curl python python-virtualenv python-dev # qemu deps RUN apt-get -y install pkg-confi...
first pass at docs update
@@ -49,9 +49,56 @@ HTTP.post("https://httpbin.org/post", {"test": 10}, ["Content-Type: application/ HTTP.post("https://httpbin.org/post", {"test": 10}, ["Content-Type: application/json"], 1); ``` +### HTTP.newClient(dict) + +Creates a new HTTP client with a given set of options. +Returns a Result and neecds to be unwra...
bsp/nucleo-l476rg: Fix MOSI pin assignment While CLK and MISO are assigned to Arduino like pins, MOSI was assigned other valid value that could make it confusing.
@@ -88,7 +88,7 @@ struct stm32_hal_spi_cfg spi0_cfg = { .ss_pin = MCU_GPIO_PORTA(4), .sck_pin = MCU_GPIO_PORTA(5), .miso_pin = MCU_GPIO_PORTA(6), - .mosi_pin = MCU_GPIO_PORTB(5), + .mosi_pin = MCU_GPIO_PORTA(7), .irq_prio = 2, }; #endif
Increase battery reporting interval to reduce battery consumption
@@ -1173,9 +1173,9 @@ bool DeRestPluginPrivate::sendConfigureReportingRequest(BindingTask &bt) else if (sensor && (sensor->modelId().startsWith(QLatin1String("Lightify Switch Mini")) || // Osram 3 button remote sensor->modelId().startsWith(QLatin1String("Switch 4x EU-LIGHTIFY"))) ) // Osram 4 button remote { - rq.attri...
libcupsfilters: Clean up "Kodak" manufacturer name Some Kodak printers/PPD files report "Eastman Kodak Company", others simply "Kodak" as manufacturer name. Let the ieee1284NormalizeMakeAndModel() function use simply "Kodak" here.
@@ -1028,6 +1028,26 @@ ieee1284NormalizeMakeAndModel( bufptr += 2; } + bufptr = buffer; + while ((bufptr = strcasestr(bufptr, "eastman kodak company")) != NULL && + (bufptr == buffer || !isalnum(*(bufptr - 1))) && + !isalnum(*(bufptr + 21))) + { + /* + * Replace with Kodak... + */ + + bufptr[0] = 'K'; + bufptr[1] = 'o'...
CCode: Use `add_plugintest` instead of `add_gtest`
-if (DEPENDENCY_PHASE) - include (LibAddTest) - add_gtest (testmod_ccode - SOURCES ccode.cpp - coder.cpp - LINK_ELEKTRA elektra-kdb - elektra-plugin - INCLUDE_DIRECTORIES "${CMAKE_CURRENT_BINARY_DIR}" # Required for `readme_ccode.c` - "${CMAKE_SOURCE_DIR}/src/bindings/cpp/tests") -endif (DEPENDENCY_PHASE) +if (ADDTESTI...
Fix pip3 asymmetry
@@ -44,7 +44,7 @@ jobs: - name: Install Python module run: | pip3 install --user -r requirements.txt - pip3 uninstall --user -y project-generator + pip3 uninstall -y project-generator pip3 install --user git+https://github.com/mbrossard/project_generator.git@development - name: Install Embedded Arm Toolchain
Deal with BUF_MEM_grow ambiguity BUF_MEM_grow() returns the passed length, but also zero on error. If the passed length was zero, an extra check to see if a returned zero was an error or not is needed.
@@ -83,8 +83,15 @@ static int collect(BUF_MEM **collector, void *data, size_t datalen) } i = (*collector)->length; /* BUF_MEM_grow() changes it! */ - if (!BUF_MEM_grow(*collector, i + datalen)) + /* + * The i + datalen check is to distinguish between BUF_MEM_grow() + * signaling an error and BUF_MEM_grow() simply retur...
fix missing prototype for heap_alloc_small
@@ -161,6 +161,7 @@ mi_decl_export mi_decl_allocator void* mi_heap_malloc(mi_heap_t* heap, size_t si mi_decl_export mi_decl_allocator void* mi_heap_zalloc(mi_heap_t* heap, size_t size) mi_attr_noexcept mi_attr_malloc mi_attr_alloc_size(2); mi_decl_export mi_decl_allocator void* mi_heap_calloc(mi_heap_t* heap, size_t co...
hammer: Fix moonball touchpad settings Fix the dimensions to pass firmware test. BRANCH=kukui TEST=emerge-kukui chromeos-ec
#define CONFIG_TOUCHPAD_VIRTUAL_SIZE (64*1024) #elif defined(BOARD_MOONBALL) #define HAS_I2C_TOUCHPAD -#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_X 2926 -#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_Y 1441 +#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_X 2925 +#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_Y 1440 #define CO...
ambassador: Update fan and thermal settings. TEST=Built the EC firmware Tested-by: Neill Corlett
@@ -363,9 +363,9 @@ const struct fan_conf fan_conf_0 = { }; const struct fan_rpm fan_rpm_0 = { - .rpm_min = 1900, - .rpm_start = 2400, - .rpm_max = 4300, + .rpm_min = 2500, + .rpm_start = 2500, + .rpm_max = 5200, }; const struct fan_t fans[] = { @@ -385,16 +385,16 @@ BUILD_ASSERT(ARRAY_SIZE(mft_channels) == MFT_CH_COUN...
Fix type in pluto_matrix_intercnage_rows, move to C99/ C++11. Fix formatting
@@ -112,7 +112,8 @@ void pluto_matrix_resize(PlutoMatrix *mat, int nrows, int ncols) { } for (i = 0; i < alloc_nrows; i++) { - mat->val[i] = (int64_t *)realloc(mat->val[i], alloc_ncols * sizeof(int64_t)); + mat->val[i] = + (int64_t *)realloc(mat->val[i], alloc_ncols * sizeof(int64_t)); } mat->alloc_nrows = alloc_nrows;...
dev-tools/hwloc: update tarball URL for 2.x series
@@ -19,7 +19,7 @@ Summary: Portable Hardware Locality License: BSD-3-Clause Group: %{PROJ_NAME}/dev-tools Url: http://www.open-mpi.org/projects/hwloc/ -Source0: https://www.open-mpi.org/software/hwloc/v1.11/downloads/%{pname}-%{version}.tar.bz2 +Source0: https://download.open-mpi.org/release/hwloc/v2.0/%{pname}-%{versi...
bootloader_support: fix uart1 no printing in the 2nd bootloader stage
@@ -61,6 +61,9 @@ void bootloader_console_init(void) const int uart_tx_gpio = CONFIG_ESP_CONSOLE_UART_TX_GPIO; const int uart_rx_gpio = CONFIG_ESP_CONSOLE_UART_RX_GPIO; + // Switch to the new UART (this just changes UART number used for esp_rom_printf in ROM code). + esp_rom_uart_set_as_console(uart_num); + // If conso...
Added HINTERRUPT_CALLBACK for hint callback method + cleanup
#define ROM_SIZE ((ROM_END + ROM_ALIGN_MASK) & (~ROM_ALIGN_MASK)) +#define HINTERRUPT_CALLBACK __attribute__ ((interrupt)) void + + // exist through rom_head.c typedef struct { @@ -68,6 +71,7 @@ typedef enum ON_VBLANK_START /** Start VBlank process on VBlank *start* period, means that we wait the next *start* of VBlank...
fuzz: feedback log
@@ -427,12 +427,12 @@ static void fuzz_perfFeedback(honggfuzz_t * hfuzz, fuzzer_t * fuzzer) hfuzz->linux.hwCnts.softCntCmp += softCntCmp; if (hfuzz->useScreen) { - LOG_I("NEW, size:%zu (insns,brs,edgs,pcs,hw,cmp): %" PRIu64 "/%" + LOG_I("NEW, size:%zu (i,b,edgs,ips,hw,cmp): %" PRIu64 "/%" PRIu64 "/%" PRIu64 "/%" PRIu64...
BugID:18726380:Add ble buf null check
@@ -246,7 +246,9 @@ struct net_buf *net_buf_get(struct k_fifo *fifo, s32_t timeout) } /* Mark the end of the fragment list */ + if (frag) { frag->frags = NULL; + } return buf; } @@ -305,7 +307,9 @@ struct net_buf *net_buf_slist_get(sys_slist_t *list) } /* Mark the end of the fragment list */ + if (frag) { frag->frags =...
Ignore any unmapped (non-POR) DCPMMs, allowing goal creation for the remaining DCPMMs in POR config.
@@ -1744,7 +1744,7 @@ VerifyCreatingSupportedRegionConfigs( pDimm = DIMM_FROM_NODE(pDimmNode); if (Socket == pDimm->SocketId) { - if (!IsDimmManageable(pDimm)) { + if (!IsDimmManageable(pDimm) || !IsDimmInSupportedConfig(pDimm)) { continue; } @@ -1762,7 +1762,7 @@ VerifyCreatingSupportedRegionConfigs( /** Get a number ...
config_tool: bdf of ioport serial port Little fix: bdf format of inport serial port in board_inspector.
@@ -94,7 +94,7 @@ def dump_ttys_info(ttys_list, config): base = read_ttys_node(base_path) try: b = get_bdf_from_realpath(os.path.join(TTY_PATH, ttys_n, 'device')) - bdf = f'{b[0]}:{b[1]}.{b[2]} + bdf = f'{b[0]}:{b[1]}.{b[2]}' except AssertionError: bdf = '' if bdf:
dpdk: fix rss configuration error issue Reorder foreach_dpdk_rss_hf to fix rss configuration error issue.
_ (rx_errors, q_errors) #define foreach_dpdk_rss_hf \ - _(ETH_RSS_IPV4, "ipv4") \ _(ETH_RSS_FRAG_IPV4, "ipv4-frag") \ _(ETH_RSS_NONFRAG_IPV4_TCP, "ipv4-tcp") \ _(ETH_RSS_NONFRAG_IPV4_UDP, "ipv4-udp") \ _(ETH_RSS_NONFRAG_IPV4_SCTP, "ipv4-sctp") \ _(ETH_RSS_NONFRAG_IPV4_OTHER, "ipv4-other") \ - _(ETH_RSS_IPV6, "ipv6") \ ...
Grr fixed another line assembly bug
@@ -240,7 +240,7 @@ namespace MiningCore.Stratum // fastpath if (index + 1 == bufferSize && recvQueue.Count == 0) { - observer.OnNext(new PooledArraySegment<byte>(buf, prevIndex, index)); + observer.OnNext(new PooledArraySegment<byte>(buf, prevIndex, index - prevIndex)); keepLease = true; break; }
Add notes on project paths
It is backed by [libuv][http://libuv.org/] to implement IO functionality, and is a work in progress. +## To build the Wren CLI + +### Windows + +The `projects/vs20xx` folders contain Visual Studio projects. + +### macOS + +The `projects/xcode` folder contains an Xcode project. + +### Linux + +The `projects/gmake` folde...
parallel-libs/boost: bump to v1.66.0
Summary: Boost free peer-reviewed portable C++ source libraries Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM} -Version: 1.65.1 +Version: 1.66.0 -%define version_exp 1_65_1 +%define version_exp 1_66_0 Release: 1%{?dist} License: BSL-1.0 Group: %{PROJ_NAME}/parallel-libs Url: http://www.boost.org -Source0:...
actions FEATURE install uncrustify for a single build
@@ -73,6 +73,19 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Uncrustify + shell: bash + working-directory: ${{ github.workspace }} + run: | + git clone --branch uncrustify-0.71.0 https://github.com/uncrustify/uncrustify + cd uncrustify + mkdir build + cd build + CC=${{ matrix.config.cc }} cmake .. + make + sud...
Cleaned up .gitignore Still contained all the cups-filters entries from before the splitting of the repositories.
@@ -38,37 +38,20 @@ m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 m4/lt~obsolete.m4 -filter/braille/filters/liblouis*.defs -filter/braille/drivers/generic/brftoembosser -filter/braille/drivers/index/imageubrltoindexv[34] -filter/braille/drivers/index/index.sh -filter/braille/drivers/index/indexv[34].sh -filter/braille/...
Shutdown messages v.2
@@ -642,8 +642,7 @@ static void facil_init_run(void *arg, void *arg2) { } static void facil_cleanup(void *arg) { - if (FACIL_PRINT_STATE && facil_data->parent == getpid()) - fprintf(stderr, "\n --- starting shutdown ---\n"); + fprintf(stderr, "* %d cleanning up.\n", getpid()); intptr_t uuid; for (size_t i = 0; i < faci...
Add _sceAppMgrGetCoredumpStateForShell
@@ -531,6 +531,29 @@ int _sceAppMgrGetRawPathOfApp0ByAppIdForShell(int appId, char resolved_path[292] */ int sceAppMgrGetBudgetInfo(SceAppMgrBudgetInfo *info); +typedef struct SceAppMgrCoredumpState { + SceUID pid; + int process_state; + int progress; // 0-100 + int is_coredump_completed; + int data_0x10; + SceSize pat...
Small adjustments to render_mango
@@ -1237,7 +1237,7 @@ void render_mango(swapchain_stats& data, struct overlay_params& params, ImVec2& } ImGui::EndTable(); if (params.enabled[OVERLAY_PARAM_ENABLED_frame_timing]){ - ImGui::Dummy(ImVec2(0.0f, params.font_size * params.font_scale / 2)); + ImGui::Dummy(ImVec2(0.0f, 8.0f)); ImGui::PushFont(data.font1); ImG...
board/servo_v4p1/usb_sm.c: Format with clang-format BRANCH=none TEST=none
@@ -115,8 +115,8 @@ void set_state(const int port, struct sm_ctx *const ctx, * intended state to transition into. */ if (internal->exit) { - CPRINTF("C%d: Ignoring set state to 0x%pP within 0x%pP", - port, new_state, ctx->current); + CPRINTF("C%d: Ignoring set state to 0x%pP within 0x%pP", port, + new_state, ctx->curre...
Change some section names
@@ -16,7 +16,7 @@ The changes are detailed below, and include: - Removal of functions previously marked as deprecated. -## Tooling +## General changes ### Introduce a level of indirection and versioning in the config files @@ -493,7 +493,7 @@ names provided by the 1.0 specification instead. -## The ALT interface +## Ch...
Update README.txt Added CI badge to readme
+<img src="https://github.com/KCL-BMEIS/niftyreg/blob/master/logo/nifty_reg_logo.png" alt="NiftyReg logo" title="NiftyReg" align="centre" height="80" /> + +[![License](https://img.shields.io/github/license/KCL-BMEIS/NiftyReg)](https://github.com/KCL-BMEIS/niftyreg/blob/master/LICENSE.txt) +[![GitHub Actions](https://im...
af_packet: support changing the mtu size Added support to the af_packet device to change the MTU size.
#include <linux/if_ether.h> #include <linux/if_packet.h> #include <dirent.h> +#include <sys/stat.h> +#include <sys/types.h> +#include <fcntl.h> #include <vlib/vlib.h> #include <vlib/unix/unix.h> @@ -61,7 +64,26 @@ static u32 af_packet_eth_flag_change (vnet_main_t * vnm, vnet_hw_interface_t * hi, u32 flags) { - /* nothi...
libhfnetdriver: comments, remove some includes
-#include <dlfcn.h> #include <errno.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <stdbool.h> #include <stdint.h> -#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> @@ -224,9 +222,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len) { PLOG_F("send(sock=%d, len...
bin: adjust banner
@@ -194,7 +194,7 @@ static void flb_version() static void flb_banner() { - fprintf(stderr, "%sFluent-Bit v%s%s\n", + fprintf(stderr, "%sFluent Bit v%s%s\n", ANSI_BOLD, FLB_VERSION_STR, ANSI_RESET); fprintf(stderr, "%sCopyright (C) Treasure Data%s\n\n", ANSI_BOLD ANSI_YELLOW, ANSI_RESET);
Add implementation of GetCustomAttributes for fields
@@ -125,7 +125,82 @@ HRESULT Library_corlib_native_System_Reflection_FieldInfo::GetCustomAttributes__ { NANOCLR_HEADER(); - NANOCLR_SET_AND_LEAVE(stack.NotImplementedStub()); + CLR_RT_HeapBlock* callerField; + CLR_RT_HeapBlock* returnArray = NULL; + CLR_RT_FieldDef_Instance fieldDefinition; + int count = 0; + + // put ...
os/arch/arm/src/armv7-m/up_assert: Add system block feature Add system block feature for armv7-m architecture. This patch adds the feature to block the system if any kind of fault occurs in the system. When this feature is enabled system will be blocked and can be debug through T32.
@@ -457,8 +457,10 @@ static void _up_assert(int errorcode) } #else +#ifndef CONFIG_BOARD_ASSERT_SYSTEM_BLOCK /* Are we in an interrupt handler or the idle task? */ if (current_regs || (this_task())->pid == 0) { +#endif (void)irqsave(); for (;;) { #ifdef CONFIG_ARCH_LEDS @@ -468,10 +470,12 @@ static void _up_assert(int ...
use rev for flip
++ flip |= b=byts ^- byts - :- wid.b - %+ lsh [3 (sub wid.b (met 3 dat.b))] - (swp 3 dat.b) + [wid.b (rev 3 b)] :: Converts a list of bits to a list of n-bit numbers :: input-bits should be big-endian ::
ssc: fix undefined variable
@@ -1180,6 +1180,8 @@ def halomod_Tk3D_SSC(cosmo, hmc, dpk12[ia, :] = norm12*((2.2380952381-dpk/3)*i11_1*i11_2*pk+i12_12) dpk34[ia, :] = norm34*((2.2380952381-dpk/3)*i11_3*i11_4*pk+i12_34) + # Defining i02_12 here to avoid problems in L1205 in some plataforms + i02_12 = None # Counter terms for clustering (i.e. - (bA +...
Fix a spell mistake After commented default portable option in `app/meson.build` get some error and then find this. :)
#define SOCKET_NAME "scrcpy" #define SERVER_FILENAME "scrcpy-server.jar" -#define DEFAULT_SERVER_PATH PREFIX "/share/scrcpy/" SERVER_FLENAME +#define DEFAULT_SERVER_PATH PREFIX "/share/scrcpy/" SERVER_FILENAME #define DEVICE_SERVER_PATH "/data/local/tmp/" SERVER_FILENAME static const char *
u3: removes redundant byte-array allocation in u3s_cue_xeno
@@ -629,17 +629,24 @@ _cs_cue_xeno_next(_cue_stack_t* tac_u, // XX need a ur_bsr_words_any() // else { - c3_d byt_d = (len_d >> 3) + !!ur_mask_3(len_d); + c3_w* wor_w; c3_y* byt_y; - // XX check that byt_d fits in a c3_w; - // - byt_y = c3_calloc(byt_d); - ur_bsr_bytes_any(red_u, len_d, byt_y); + { + c3_d byt_d = (len_...
sdl/hints: Add Windows hints for SDL2 2.0.6
@@ -10,6 +10,8 @@ package sdl #define SDL_HINT_MOUSE_NORMAL_SPEED_SCALE "" #define SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE "" #define SDL_HINT_TOUCH_MOUSE_EVENTS "" +#define SDL_HINT_WINDOWS_INTRESOURCE_ICON "" +#define SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL "" #endif #if !(SDL_VERSION_ATLEAST(2,0,4)) @@ -102,6 +104,8 @@ ...
net/usrsock: Split NET_USRSOCK_OTHER to NET_USRSOCK_ICMP[v6]
@@ -49,8 +49,14 @@ config NET_USRSOCK_TCP default n select NET_TCP_NO_STACK -config NET_USRSOCK_OTHER - bool "Enable other protocol families in addition of INET & INET6" +config NET_USRSOCK_ICMP + bool "User-space daemon provides ICMP sockets" + select NET_ICMP_NO_STACK + default n + +config NET_USRSOCK_ICMPv6 + bool "...
Locale/language bug fix in pe module for Windows Related to bugfix in commit Building on Windows causes bug regression despite of commit
@@ -2452,7 +2452,7 @@ define_function(locale) for (i = 0; i < n; i++) { uint64_t rsrc_language = get_integer( - module, "resources[%" PRIi32 "].language", (int32_t)i); + module, "resources[%i].language", (int32_t)i); if ((rsrc_language & 0xFFFF) == locale) return_integer(1); @@ -2483,7 +2483,7 @@ define_function(langua...
Retry sending data on a broken connection.
@@ -982,19 +982,17 @@ run_ipp_usb_to_host( { if (poll(&poll_data, 1, 1000) > 0) { - papplLogPrinter(iface->printer, PAPPL_LOGLEVEL_DEBUG, "TOHOST%d: Reading from socket %d.", iface->number, iface->ipp_sock); +// papplLogPrinter(iface->printer, PAPPL_LOGLEVEL_DEBUG, "TOHOST%d: Reading from socket %d.", iface->number, if...
Remove obsolete options.
@@ -15,8 +15,6 @@ use "syssel" const main = {args : byte[:][:] var b : bld.build# - var cleanfirst - var dumponly var bintarg var targname var runsrc @@ -28,8 +26,6 @@ const main = {args : byte[:][:] cmd = std.optparse(args, &[ .argdesc = "[inputs...]", .opts = [ - [.opt='c', .desc="clean before building"], - [.opt='T'...
ds lyb BUGFIX conditional header
#include <stdio.h> #include <stdlib.h> #include <string.h> -#include <sys/inotify.h> #include <sys/stat.h> #include <sys/types.h> #include <time.h> #include <unistd.h> +#ifdef SR_HAVE_INOTIFY +# include <sys/inotify.h> +#endif + #include <libyang/libyang.h> #include "compat.h"
[bsp/stm32l496-st-nucleo] update SConscript && remove uart_sample.c
@@ -6,10 +6,6 @@ src = Split(''' main.c ''') -if GetDepend(['BSP_USING_USBD']): - if GetDepend(['RT_USB_DEVICE_CDC']): - src += ['uart_sample.c'] - CPPPATH = [str(Dir('#')), cwd] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
ossl_do_blob_header: fix return check
@@ -1347,8 +1347,8 @@ static OSSL_STORE_INFO *file_try_read_msblob(BIO *bp, int *matchcount) if (BIO_buffer_peek(bp, peekbuf, sizeof(peekbuf)) <= 0) return 0; - if (!ossl_do_blob_header(&p, sizeof(peekbuf), &magic, &bitlen, - &isdss, &ispub)) + if (ossl_do_blob_header(&p, sizeof(peekbuf), &magic, &bitlen, + &isdss, &is...
misc: update badge counts and refs
--- -[![Components](https://img.shields.io/badge/components%20available-88-green.svg) ](https://github.com/openhpc/ohpc/wiki/Component-List-v1.3.6) -[![Additions](https://img.shields.io/badge/new%20additions-7-blue.svg) ](https://github.com/openhpc/ohpc/releases/tag/v1.3.6.GA) -[![Updates](https://img.shields.io/badge/...
engine_dispatch: do not release buffers on dyntags
@@ -138,9 +138,10 @@ int flb_engine_dispatch(uint64_t id, struct flb_input_instance *in, /* There is a match, get the buffer */ buf = flb_input_dyntag_flush(dt, &size); if (size == 0) { - if (buf) { - flb_free(buf); - } + /* + * Do not release the buffer since if allocated, it will be + * released upon input_dyntag con...
include/charge_manager.h: Format with clang-format BRANCH=none TEST=none
@@ -66,8 +66,7 @@ enum charge_supplier { [CHARGE_SUPPLIER_BC12_SDP] = "BC12_SDP", \ [CHARGE_SUPPLIER_PROPRIETARY] = "BC12_PROP", \ [CHARGE_SUPPLIER_TYPEC_UNDER_1_5A] = "USBC_U1_5A", \ - [CHARGE_SUPPLIER_OTHER] = "BC12_OTHER", \ - [CHARGE_SUPPLIER_VBUS] = "VBUS", + [CHARGE_SUPPLIER_OTHER] = "BC12_OTHER", [CHARGE_SUPPLIE...
docs: set max_user_namespaces on compute nodes
@@ -12,7 +12,6 @@ Preview, so it must be manually enabled with kernel arguments. [sms](*\#*) wwsh -y provision set "${compute_regex}" --kargs=namespace.unpriv_enable=1 # Increase per-user limit on the number of user namespaces that may be created -[sms](*\#*) echo "user.max_user_namespaces=15076" >> /etc/sysctl.conf -[...
sysrepo BUGFIX apply NACM on copy runing->candidate Fixes
@@ -3578,7 +3578,7 @@ sr_copy_config(sr_session_ctx_t *session, const char *module_name, sr_datastore_ } } - if ((src_datastore == SR_DS_RUNNING) && (session->ds == SR_DS_CANDIDATE)) { + if ((src_datastore == SR_DS_RUNNING) && (session->ds == SR_DS_CANDIDATE) && !session->nacm_user) { /* add modules into mod_info witho...
Disable PHP on travis for Linux.
@@ -25,7 +25,7 @@ install: before_script: - export BUILD_DIR="build" - - if [ "$TRAVIS_OS_NAME" == "linux" ]; then export DEPLOY_DOCS="true"; fi; + - if [ "$TRAVIS_OS_NAME" == "linux" ]; then export DEPLOY_DOCS="true" CMAKE_FLAGS="$CMAKE_FLAGS -DTINYSPLINE_DISABLE_PHP=TRUE"; fi; - if [ "$TRAVIS_OS_NAME" == "osx" ]; the...
Fix off-by-one error in seekNewline
@@ -123,21 +123,27 @@ static char *readBytes(redisReader *r, unsigned int bytes) { /* Find pointer to \r\n. */ static char *seekNewline(char *s, size_t len) { - char *_s = s, *ret; - int _len = len-1; + char *ret; - /* Exclude the last character from the searched length because the found - * '\r' should be followed by ...
JSONLib: tune convert to string code
@@ -308,16 +308,10 @@ String CJSONEntry::getStringObject( const char* name, const char* szDefValue ) struct json_object* obj = json_object_object_get(m_object,const_cast<char*>(name)); if ( obj != 0 ) { - if (json_object_is_type(obj,json_type_string)) { - int len = json_object_get_string_len(obj); - const char* str = j...
Adjust the default MAXEVENTS value.
#include "evt.h" -#define MAXEVENTS 100 +#define MAXEVENTS 10 struct _evt_t { @@ -511,7 +511,7 @@ evtMetric(evt_t *evt, const char *host, uint64_t uid, event_t *metric) if (time(&now) > rateTime) { rateTime = now; rate = notified = 0; - } else if (++rate > MAXEVENTS) { + } else if (++rate >= MAXEVENTS) { // one notice ...
updates $%lient/%rver +task interfaces to use $>
== :: ++ task + $~ [%vega ~] $% :: event failure notification :: - [%crud p=@tas q=(list tank)] + $>(%crud vane-task) :: system started up; reset open connections :: - [%born ~] + $>(%born vane-task) :: report upgrade :: - [%vega ~] + $>(%vega vane-task) :: fetches a remote resource :: [%request =request:http =outbound...
in_node_exporter_metrics: handle missing fields in different kernel versions
#include <unistd.h> +/* + * See kernel documentation for a description: + * https://www.kernel.org/doc/html/latest/filesystems/proc.html + * + * user: normal processes executing in user mode + * nice: niced processes executing in user mode + * system: processes executing in kernel mode + * idle: twiddling thumbs + * io...
Update i2c documentation Description for i2c_slave_read_buffer had leftover from copying from write fct. data pointer description described the wrong way (writing into internal buffer) Closes
@@ -384,7 +384,7 @@ int i2c_slave_write_buffer(i2c_port_t i2c_num, uint8_t* data, int size, TickType * Only call this function in I2C slave mode * * @param i2c_num I2C port number - * @param data data pointer to write into internal buffer + * @param data data pointer to accept data from internal buffer * @param max_siz...
Suppress errors about undocumented asn1_d2i_read_bio asn1_d2i_read_bio is exported by libcrypto but is only intended for internal usage, and does not exist in our public headers. Therefore we suppress errors about it being a newly added undocumented symbol.
ossl_cmp_allow_unprotected_cb_t datatype # DEFINE_SPARSE_ARRAY_OF define +#Functions exported by libcrypto that don't exist in our public headers +asn1_d2i_read_bio internal
updated to reflect SGDK changes
@@ -53,12 +53,11 @@ void JOY_reset() gport = 0xFFFF; - /* disable ints */ + /* disable ints (we can do it here for safety) */ SYS_disableInts(); #if (HALT_Z80_ON_IO == 1) - z80state = Z80_isBusTaken(); - if (!z80state) Z80_requestBus(FALSE); + z80state = Z80_getAndRequestBus(TRUE); #endif /* check for EA 4-Way Play */ ...
docs/glossary: Add definitions for "buffer" and "fragmentation".
@@ -16,6 +16,11 @@ Glossary may also refer to "boardless" ports like :term:`Unix port <MicroPython Unix port>`). + buffer + An object implementing a buffer protocol. The simplest examples of + buffers are `bytes` (read-only buffer) and `bytearray` (read-write + buffer). + callee-owned tuple A tuple returned by some bui...
Improve comments in parse_mbed_words()
@@ -287,14 +287,15 @@ class NameCheck(): def parse_mbed_words(self, files): """ - Parse all words in the file that begin with MBED. Includes macros. - There have been typos of TLS, hence the broader check than MBEDTLS. + Parse all words in the file that begin with MBED, in and out of macros, + comments, anything. Args:...
fix: enable vagrant box version check and disable update engine in Flatcar This is to prevent any reboot during e2e execution which could lead to connection loss.
Vagrant.configure("2") do |config| config.vm.box = "flatcar-stable" + config.vm.box_check_update = true config.vm.box_url = "https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_vagrant.json" memory = 8192 cpus = 4 @@ -34,6 +35,9 @@ Vagrant.configure("2") do |config| sh.inline = <<~SHELL set -e...
Clarify comment rules.
@@ -85,7 +85,7 @@ TABLE OF CONTENTS: 2.2. As-If Rule: - Anything specified in this document may be treated however the + Any behavior specified in this document may be treated however the compiler wishes, as long as the result is observed as if the semantics specified were followed strictly. @@ -93,18 +93,19 @@ TABLE O...
Fixed CMSIS generic library documentation and example.
@@ -259,16 +259,16 @@ Refer to \ref core_config_sect for a list of the available <b>core_<cpu>.h</b> h \b Example: The following code section shows the usage of the <b>core_&lt;cpu&gt;.h</b> header files to build a generic library for Cortex-M0, Cortex-M3, Cortex-M4, or Cortex-M7. To -select the processor, the source c...
add Linux kernel coding style as the fall back for subjects that are not covered in our guideline
@@ -105,6 +105,10 @@ For example, a file called `test.h` should have: #endif // TEST_H ``` +Don't use `pragam once` which is not supported by all C/C++ compilers + +## MISC +For subjects that are not coverred here, we follow [Linux kernel coding style](https://www.kernel.org/doc/html/v4.10/process/coding-style.html#lin...
docs: Added a step to avoid compilation failures issue
@@ -79,8 +79,11 @@ In curly braces below `if(CONFIG_APPIMG_LOAD_FLASH)`,find `add_appimg(${target} PLATFORM_TARGET ?= Fibocom-L610 + #### b. Disable the Fabric Macro Switch - #### b. Open a Linux shell, enter `<L610 Root>/BoAT-X-Framework` directory and compile BoAT static library + The platform does not support the FA...
Deprecated option --geoip-city-data in favor of --geoip-database. Closes
@@ -144,9 +144,6 @@ struct option long_opts[] = { #ifdef HAVE_GEOLOCATION {"geoip-database" , required_argument , 0 , 0 } , #endif -#ifdef HAVE_LIBGEOIP - {"geoip-city-data" , required_argument , 0 , 0 } , -#endif #ifdef TCB_BTREE {"accumulated-time" , no_argument , 0 , 0 } , {"cache-lcnum" , required_argument , 0 , 0 ...
[core] fix triggered assert on HTTP chunked input (fixes (thx AlxT) x-ref: "Segmentation fault on HTTP chunked input"
@@ -125,6 +125,7 @@ static handler_t connection_handle_read_post_chunked(server *srv, connection *co while (0 == te_chunked) { char *p; chunk *c = cq->first; + if (NULL == c) break; force_assert(c->type == MEM_CHUNK); p = strchr(c->mem->ptr+c->offset, '\n'); if (NULL != p) { /* found HTTP chunked header line */
Device fix for BLE: call uBleInit/uBleDeinit(). When the device layer was introduced in commit the calls to the BLE init/deinit functions, which used to be in uNetworkInitBle()/UNetworkDeinitBle(), were lost. Oops. They are now added in uDevicePrivateShortRangeInit()/uDevicePrivateShortRangeDeinit().
#include "u_short_range_edm_stream.h" #include "u_ble_module_type.h" +#include "u_ble.h" #include "u_device_shared_short_range.h" #include "u_device_private_short_range.h" @@ -71,6 +72,9 @@ int32_t uDevicePrivateShortRangeInit() if (errorCode == 0) { errorCode = uAtClientInit(); } + if (errorCode == 0) { + errorCode = ...
peview: Add hack for SymSearchW crashes
@@ -1889,12 +1889,14 @@ BOOL CALLBACK EnumCallbackProc( symDataKind = SymbolInfo_DataKindStr(dataKindType); - //if (dataKindType == DataIsLocal || - // dataKindType == DataIsParam || - // dataKindType == DataIsObjectPtr) - //{ - // break; - //} + if ( + dataKindType == DataIsLocal || + dataKindType == DataIsParam || + ...
Remove out of date documentation bit `clap-plugin-core` was removed in
@@ -5,8 +5,7 @@ project(CLAP LANGUAGES C CXX VERSION 1.1.2) option(CLAP_BUILD_TESTS "Should CLAP build tests and the like?" OFF) # If you use clap as a submodule of your plugin you need some interface projects -# to allow you to link. clap-core gives you the include directory and clap-plugin-core -# gives you the core ...
Remove reduntant dirty check When flush completion is called there could be some clines marked as dirty since those could be in-use during flushing.
@@ -598,20 +598,6 @@ static void _ocf_mngt_flush_finish(ocf_pipeline_t pipeline, void *priv, ocf_cache_t cache = context->cache; ocf_core_t core = context->core; - if (!error) { - switch(context->op) { - case flush_cache: - case purge_cache: - ENV_BUG_ON(ocf_mngt_cache_is_dirty(cache)); - break; - case flush_core: - ca...
error: corrected error message & categorization for kdb.c
@@ -957,7 +957,7 @@ int kdbGet (KDB * handle, KeySet * ks, Key * parentKey) if (ns == KEY_NS_EMPTY) { - ELEKTRA_ADD_VALIDATION_SYNTACTIC_WARNING (parentKey, "Empty namespace passed to kdbGet"); + ELEKTRA_ADD_INTERFACE_WARNING (parentKey, "Empty namespace passed to kdbGet. Please use the cascading key / instead"); } int...