message
stringlengths
6
474
diff
stringlengths
8
5.22k
Avoid `clang` alignment distrust issues
@@ -5101,17 +5101,21 @@ typedef enum fio_cluster_message_type_e { typedef struct fio_collection_s fio_collection_s; -#pragma pack(1) +#ifndef __clang__ /* clang might misbehave by assumming non-alignment */ +#pragma pack(1) /* https://gitter.im/halide/Halide/archives/2018/07/24 */ +#endif typedef struct { size_t name_l...
uds zero second timeout
@@ -345,6 +345,9 @@ class IsoTpMessage(): self._isotp_rx_next(msg) if self.tx_done and self.rx_done: return self.rx_dat + # no timeout indicates non-blocking + if self.timeout == 0: + return None if time.time() - start_time > self.timeout: raise MessageTimeoutError("timeout waiting for response") finally: @@ -415,19 +4...
HUB75: Add expansion and feature pins
@@ -53,7 +53,19 @@ STATIC const mp_map_elem_t hub75_globals_table[] = { { MP_OBJ_NEW_QSTR(MP_QSTR_PANEL_GENERIC), MP_ROM_INT(0) }, { MP_OBJ_NEW_QSTR(MP_QSTR_PANEL_FM6126A), MP_ROM_INT(1) }, { MP_ROM_QSTR(MP_QSTR_color), MP_ROM_PTR(&Hub75_color_obj) }, - { MP_ROM_QSTR(MP_QSTR_color_hsv), MP_ROM_PTR(&Hub75_color_hsv_obj)...
OcMachoLib: Remove redundant cast.
@@ -191,7 +191,7 @@ InternalGetNextCommand64 ( ASSERT (Context != NULL); - MachHeader = ((CONST OC_MACHO_CONTEXT *)Context)->MachHeader; + MachHeader = Context->MachHeader; ASSERT (MachHeader != NULL); TopOfCommands = ((UINTN)MachHeader->Commands + MachHeader->CommandsSize);
pack: fix msgpack_to_json() condition and do realloc
@@ -550,30 +550,44 @@ int flb_msgpack_obj_to_json(char *json_str, size_t str_len, */ char *flb_msgpack_to_json_str(size_t size, msgpack_unpacked *data) { + int ret; char *buf = NULL; + char *tmp; if (data == NULL) { return NULL; } + if (size <= 0) { size = 128; } - while(1) { - buf = (char *)flb_malloc(size); - if (buf...
Fix compilation waring in eth sdk
@@ -60,9 +60,10 @@ bool adjustDecimals(char *src, uint32_t targetLength, uint8_t decimals); -__attribute__((no_instrument_function)) inline int allzeroes(uint8_t *buf, int n) { - for (int i = 0; i < n; ++i) { - if (buf[i]) { +__attribute__((no_instrument_function)) inline int allzeroes(void *buf, size_t n) { + uint8_t ...
doc: add precondition to keySetBinary
@@ -493,6 +493,7 @@ ssize_t keyGetBinary (const Key * key, void * returnedBinary, size_t maxSize) * won't be changed. This will only happen in the successful case, * but not when -1 is returned. * + * @pre @p dataSize matches the length of @p newBinary * @pre @p newBinary is not NULL and @p dataSize > 0 * @pre @p key i...
[numerics] factorization debug: clarify message & do not stop
@@ -3078,7 +3078,9 @@ int NM_LU_factorize(NumericsMatrix* Ao) { if(NM_check_values_sha1(Ao)) { - numerics_error("NM_LU_factorize", "this matrix is already factorized"); + numerics_warning("NM_LU_factorize", "an attempt to factorize this matrix has already been done"); + info = 1; + return info; } }
speed up the splunk integration test When it runs `splunk stop`, Splunk processes stop and become zombies but the `splunk stop` process is just spinning in a loop reading `/proc/PID/status` for those zombies. I just put a timeout on that so we move on faster.
@@ -36,7 +36,7 @@ class SplunkAppController(AppController): subprocess.run(start_command, check=True, shell=True) def stop(self): - subprocess.run("/opt/splunk/bin/splunk stop", check=True, shell=True) + subprocess.run("timeout 30 /opt/splunk/bin/splunk stop --force", check=False, shell=True) def assert_running(self): ...
odissey: check rc for shapito console write
@@ -77,7 +77,8 @@ static inline int od_console_show_stats_add(shapito_stream_t *stream, char *database, int database_len, - od_serverstat_t *total, od_serverstat_t *avg) + od_serverstat_t *total, + od_serverstat_t *avg) { int offset; offset = shapito_be_write_data_row(stream); @@ -166,8 +167,12 @@ od_console_show_stats...
stm32f1 - Add missing prototype.
@@ -42,6 +42,12 @@ struct stm32f1_uart_cfg { IRQn_Type suc_irqn; /* NVIC IRQn */ }; +/* + * Internal API for stm32f1xx mcu specific code. + */ +int hal_gpio_init_af(int pin, uint8_t af_type, enum hal_gpio_pull pull, + uint8_t od); + struct hal_flash; extern struct hal_flash stm32f1_flash_dev;
make test: raise packet tracing limit to 1000
@@ -554,7 +554,7 @@ class VppTestCase(unittest.TestCase): (self.__class__.__name__, self._testMethodName, self._testMethodDoc)) if not self.vpp_dead: - self.logger.debug(self.vapi.cli("show trace")) + self.logger.debug(self.vapi.cli("show trace max 1000")) self.logger.info(self.vapi.ppcli("show interface")) self.logger...
Beautify the configuration interface and keep the interface style consistent with the c tool.
@@ -585,10 +585,12 @@ class MenuConfig(object): self.list = tk.Listbox( dlg, selectmode=tk.SINGLE, - activestyle=tk.UNDERLINE, + activestyle=tk.NONE, font=font.nametofont('TkFixedFont'), height=1, ) + self.list['foreground'] = 'Blue' + self.list['background'] = 'Gray95' # Make selection invisible self.list['selectbackg...
Applying read_image optimizations to write_image as well
#endif /* writes pixel to coord in image */ -void pocl_write_pixel (void* color_, ADDRESS_SPACE dev_image_t* dev_image, int4 coord) +void pocl_write_pixel (void* color_, ADDRESS_SPACE dev_image_t* dev_image, + int4 coord) { uint4 *color = (uint4*)color_; - int i, idx; int width = dev_image->_width; int height = dev_ima...
Remove cook code
-(import cook) - -(cook/make-native - :name "numarray" - :source @["numarray.c"]) - -(import build/numarray :as numarray) +(import build/numarray) (def a (numarray/new 30)) (print (get a 20))
Update python docs with StringMatch and StringMatchInstance objects.
@@ -483,5 +483,46 @@ Reference .. py:attribute:: strings - List of tuples containing information about the matching strings. Each - tuple has the form: `(<offset>, <string identifier>, <string data>)`. + List of StringMatch objects. + +.. py:class:: StringMatch + + Objects which represent string matches. + + .. py:attr...
Remove default hotkey combo argument from registerHotkey
@@ -25,7 +25,7 @@ ScriptContext::ScriptContext(sol::state_view aStateView, const std::filesystem:: Logger::ErrorToModsFmt("Tried to register unknown handler '{}'!", acName); }; - m_env["registerHotkey"] = [this](const std::string& acID, const std::string& acDescription, sol::table aVKBindCode, sol::function aCallback) ...
erase early secrets and transcripts
@@ -1124,7 +1124,7 @@ static int ssl_tls13_generate_early_key( mbedtls_ssl_context *ssl, if( ret != 0 ) { MBEDTLS_SSL_DEBUG_RET( 1, "ssl_tls13_get_cipher_key_info", ret ); - return( ret ); + goto cleanup; } md_type = ciphersuite_info->mac; @@ -1141,7 +1141,7 @@ static int ssl_tls13_generate_early_key( mbedtls_ssl_conte...
Fix incorrect comments Found this while working on the code
@@ -154,7 +154,7 @@ void BedFile::Seek(unsigned long offset) { _bedStream->seekg(offset); } -// Jump to a specific byte in the file +// are the any intervals left in the file? bool BedFile::Empty(void) { return _status == BED_INVALID || _status == BED_BLANK; }
Added serializer files to Cypress makefiles
@@ -159,6 +159,8 @@ $(NAME)_SOURCES := $(AMAZON_FREERTOS_PATH)vendors/cypress/boards/$(PLATFORM)/ $(AFR_C_SDK_STANDARD_PATH)serializer/src/json/aws_iot_serializer_json_encoder.c \ $(AFR_C_SDK_STANDARD_PATH)common/iot_init.c \ $(AFR_C_SDK_STANDARD_PATH)serializer/src/iot_json_utils.c \ + $(AFR_C_SDK_STANDARD_PATH)serial...
Use cmocka gitlab mirror, Travis is failing to fetch it
@@ -29,7 +29,7 @@ matrix: before_install: - pushd ${HOME} - - git clone git://git.cryptomilk.org/projects/cmocka.git + - git clone https://gitlab.com/cmocka/cmocka.git - cd cmocka && mkdir build && cd build - cmake .. && make -j2 && sudo make install - cd .. && popd
EV3: Update API example import
"""API usage example for LEGO MINDSTORMS EV3.""" # Import basic stuff. We could perhaps import brick and all relevant ports by default like on the pyboard -import brick +import ev3brick from port import PORT_B, PORT_C, PORT_1 # Import the devices we want to use @@ -24,4 +24,4 @@ while not bumper.pressed(): base.stop() ...
contrib-autotools: Added some more details on how the sample works.
This is a project skeleton that uses criterion tests with the TAP test driver. +## How this works + +Be sure to do the following to get similar setups to work: + +1. copy `tap-driver.sh` from your automake installation ([`autogen.sh:4-7`](autogen.sh#L4-L7)). +2. create a wrapper script that contains the following ([`au...
vfs/fs_poll: not clear POLLIN event if POLLHUP or POLLERR set
@@ -312,9 +312,9 @@ void poll_notify(FAR struct pollfd **afds, int nfds, pollevent_t eventset) fds->revents |= eventset & (fds->events | POLLERR | POLLHUP); if ((fds->revents & (POLLERR | POLLHUP)) != 0) { - /* Error, clear POLLIN and POLLOUT event */ + /* Error or Hung up, clear POLLOUT event */ - fds->revents &= ~(PO...
BugID:18557727:open fpu hardware for pca board
@@ -81,7 +81,7 @@ $(NAME)_SOURCES += hal/ble_port.c endif ifeq ($(COMPILER),armcc) -GLOBAL_CFLAGS += --c99 --cpu=7E-M -D__MICROLIB -g --apcs=interwork --split_sections +GLOBAL_CFLAGS += --c99 --cpu=Cortex-M4 --apcs=/hardfp --fpu=vfpv4_sp_d16 -D__MICROLIB -g --split_sections else ifeq ($(COMPILER),iar) GLOBAL_CFLAGS += ...
shm mod BUGFIX unlock sid data races
@@ -497,9 +497,6 @@ revert_lock: static void sr_shmmod_unlock(struct sr_mod_lock_s *shm_lock, int timeout_ms, sr_lock_mode_t mode, sr_cid_t cid, sr_sid_t sid) { - /* UNLOCK */ - sr_rwunlock(&shm_lock->lock, timeout_ms, mode, cid, __func__); - /* remove our SID */ if ((mode == SR_LOCK_READ_UPGR) || (mode == SR_LOCK_WRIT...
fix spare id random selection.
@@ -1589,18 +1589,20 @@ reuse_tcp_select_id(struct reuse_tcp* reuse, struct outside_network* outnet) int i; unsigned select, count, space; rbnode_type* node; - for(i = 0; i<try_random; i++) { + + /* make really sure the tree is not empty */ + if(reuse->tree_by_id.count == 0) { id = ((unsigned)ub_random(outnet->rnd)>>8)...
[CM H0] updated wording + improved markdown code example
@@ -44,8 +44,18 @@ Now we can simply fetch the desired key's value as follows: String str = set.lookup("user:/my/presaved/key").getString() ``` -So for example if you have executed before the application starts `kdb set user:/my/test it_works!`, -the method call `set.lookup("user:/my/test").getString()` would return `i...
Make `sock_touch` conditional upon actual data being sent
@@ -990,13 +990,15 @@ ssize_t sock_flush(intptr_t uuid) { if (validate_uuid(uuid) || !fdinfo(fd).open) return -1; ssize_t ret; + uint8_t touch = 0; lock_fd(fd); sock_rw_hook_s *rw; retry: rw = fdinfo(fd).rw_hooks; unlock_fd(fd); while ((ret = rw->flush(fd)) > 0) - ; + if (ret > 0) + touch = 1; if (ret == -1) { if (errn...
Fixed issue where served time metrics were not shown when data was piped. It fixes the issue by looking at the log-format %D or %T or %L as a fallback to the existing mechanism. Fixes
@@ -746,6 +746,20 @@ set_time_format_str (const char *oarg) { conf.time_format = fmt; } +/* Determine if time-served data was set through log-format. */ +static void +contains_usecs (void) { + if (!conf.log_format) + return; + + if (strstr (conf.log_format, "%D")) + conf.serve_usecs = 1; /* flag */ + if (strstr (conf.l...
generate pin script: support shell pipe of cert The script's contract is backwards compatible with this change. If the certificate file argument is omitted, the script will attempt to read the certificate bytes from stdin.
#!/usr/bin/env python2.7 """Helper script to generate a TrustKit or HPKP pin from a PEM/DER certificate file. """ -from subprocess import check_output +from subprocess import Popen, PIPE +from sys import stdin import os.path import argparse import hashlib @@ -17,25 +18,30 @@ class SupportedKeyAlgorithmsEnum(object): if...
feat: merge purge with clean so clean meets its convention of clean all generated files
@@ -133,9 +133,6 @@ mkdir : mkdir -p specs-code $(OBJDIR)/specs-code mkdir -p $(OBJDIR)/sqlite3 -$(OBJDIR)/common/curl-%.c.o : common/curl-%.c - $(CC) $(CFLAGS) $(LIBS_CFLAGS) -c -o $@ $< \ - -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 #generic compilation @@ -214,6 +211,7 @@ clean : rm -rf $(OBJDIR) *.exe test/*.exe bots/*....
[software] Correct condition on sub-tile wake-up
@@ -100,7 +100,7 @@ void mempool_log_partial_barrier(uint32_t step, uint32_t core_id, ((1U << (tile_end - tile_init)) - 1) << tile_init % NUM_TILES_PER_GROUP); } else { - while (core_init > core_end - 1) { + while (core_init < core_end) { wake_up(core_init); core_init++; }
.github/workflows: build llsp
@@ -351,6 +351,12 @@ jobs: with: name: primehub-firmware path: bricks/primehub/main.py + - name: Upload install_pybricks.llsp + if: success() + uses: actions/upload-artifact@v2-preview + with: + name: primehub-firmware + path: bricks/primehub/build/install_pybricks.llsp nxt_firmware: name: nxt firmware
Fix test id descriptions
@@ -6288,7 +6288,7 @@ def test_multiclass_train_on_constant_data(task_type): @pytest.mark.parametrize( 'loss_function', ['Logloss', 'CrossEntropy'], - ids=['label_type=%s' % s for s in ['Logloss', 'CrossEntropy']] + ids=['loss_function=%s' % s for s in ['Logloss', 'CrossEntropy']] ) def test_classes_attribute_binclass(...
Swap parameters of evp_method_id() The order of the function's parameters `name_id` and `operation_id` was reverted compared to their order of appearance in the comments and assertions.
@@ -83,7 +83,7 @@ static OSSL_METHOD_STORE *get_evp_method_store(OPENSSL_CTX *libctx) * | name identity | op id | * +------------------------+--------+ */ -static uint32_t evp_method_id(unsigned int operation_id, int name_id) +static uint32_t evp_method_id(int name_id, unsigned int operation_id) { if (!ossl_assert(name...
vcl: narrow the scope of the restriction of vlsh_bit_val The restriction of vlsh_bit_val only effect select/pselect, so move the check to select/pselect function. Type: fix
@@ -271,10 +271,11 @@ ldp_init (void) /* Make sure there are enough bits in the fd set for vcl sessions */ if (ldp->vlsh_bit_val > FD_SETSIZE / 2) { - LDBG (0, "ERROR: LDP vlsh bit value %d > FD_SETSIZE/2 %d!", + /* Only valid for select/pselect, so just WARNING and not exit */ + LDBG (0, + "WARNING: LDP vlsh bit value...
bondo's fix using local storage
import React, { useState } from "react"; import Helmet from "react-helmet"; - import { useStaticQuery, graphql, Link } from "gatsby"; import "../scss/_docsNav.scss"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import Search from "./search"; import "../utils/font-awesome"; + const searchIndices = [...
Don't run the TLSv1.3 CCS tests if TLSv1.3 is not enabled
use OpenSSL::Test::Utils; use OpenSSL::Test qw/:DEFAULT srctop_file/; -setup("test_tls13ccs"); +my $test_name = "test_tls13ccs"; +setup($test_name); -plan skip_all => "No TLS/SSL protocols are supported by this OpenSSL build" - if alldisabled(grep { $_ ne "ssl3" } available_protocols("tls")); +plan skip_all => "$test_n...
Testing: add test for g1date when yearOfCentury=255
@@ -20,6 +20,11 @@ grib_check_key_equals $temp "mars.date,monthlyVerificationDate" "20060301 200603 ${tools_dir}/grib_dump $temp +# Date as string with month names +${tools_dir}/grib_set -s yearOfCentury=255 $sample_g1 $temp +grib_check_key_equals $temp "dataDate:s" "mar-16" + + # Clean up rm -f $temp
proc_load (nommu): Fixed bad reloc modifying ELF JIRA:
@@ -669,6 +669,10 @@ int process_load(process_t *process, vm_object_t *o, offs_t base, size_t size, v if (process_relocate(reloc, relocsz, (char **)&relptr) < 0) return -ENOEXEC; + /* Don't modify ELF file! */ + if ((ptr_t)relptr >= (ptr_t)base && (ptr_t)relptr < (ptr_t)base + size) + continue; + if (process_relocate(r...
apps/wireless/wapi: Correct an error in dependency generation.
@@ -54,6 +54,7 @@ CSRCS = MAINSRC = VPATH = . +DEPPATH = --dep-path . include $(APPDIR)/wireless/wapi/src/Make.defs @@ -87,8 +88,6 @@ endif CONFIG_WAPI_PROGNAME ?= wapi$(EXEEXT) PROGNAME = $(CONFIG_WAPI_PROGNAME) -ROOTDEPPATH = --dep-path . - # Common build all: .built @@ -131,7 +130,7 @@ endif # Create dependencies .d...
Add missing SDL_GL_CONTEXT_RESET_NOTIFICATION and SDL_GL_CONTEXT_NO_ERROR OpenGL attributes
@@ -62,6 +62,12 @@ static void SDL_SetWindowResizable(SDL_Window *window, SDL_bool resizable) #if !(SDL_VERSION_ATLEAST(2,0,6)) #pragma message("SDL_WINDOW_VULKAN is not supported before SDL 2.0.6") #define SDL_WINDOW_VULKAN (0) + +#pragma message("SDL_GL_CONTEXT_RESET_NOTIFICATION is not supported before SDL 2.0.6") +...
generate a simpler while loop when possible
@@ -60,6 +60,7 @@ local function checkandget(t, c, s, lin) else error("invalid type " .. types.tostring(t)) end + --return getslot(t, c, s) .. ";" return string.format([[ if(ttis%s(%s)) { %s; } else luaL_error(L, "type error at line %d, expected %s but found %%s", lua_typename(L, ttnov(%s))); @@ -173,17 +174,23 @@ loca...
Document pkcs12 alg NONE To generate unencrypted PKCS#12 file it is needed to use options: -keypbe NONE -certpbe NONE CLA: trivial
@@ -275,6 +275,8 @@ can be used (see L</NOTES> section for more information). If a cipher name is used with PKCS#5 v2.0. For interoperability reasons it is advisable to only use PKCS#12 algorithms. +Special value C<NONE> disables encryption of the private key and certificate. + =item B<-keyex>|B<-keysig> Specifies that...
BUFR decoding: Add error checking on unpack string
@@ -354,13 +354,13 @@ static int unpack_string(grib_accessor* a, char* val, size_t* len) size_t slen = 0; double dval = 0; size_t dlen = 1; - - int ret = 0, idx; + int idx = 0, err = 0; grib_context* c = a->context; if (self->type != BUFR_DESCRIPTOR_TYPE_STRING) { char sval[32] = {0,}; - unpack_double(a, &dval, &dlen);...
acrn-config: enable log_setting in all VMs enable log_setting for all VMs. Acked-by: Victor Sun
@@ -497,9 +497,6 @@ def dm_arg_set(names, sel, virt_io, dm, vmid, config): else: print('{} $npk_virt \\'.format(dm_str), file=config) - if board_name == "apl-up2" or is_nuc_whl_clr(names, vmid): - print(" $logger_setting \\", file=config) - if uos_type in ("CLEARLINUX", "ANDROID", "ALIOS"): if uos_type in ("ANDROID", "...
mesh: Fix net_buf_slist_merge implementation
@@ -839,13 +839,11 @@ void net_buf_slist_remove(struct net_buf_slist_t *list, struct os_mbuf *prev, void net_buf_slist_merge_slist(struct net_buf_slist_t *list, struct net_buf_slist_t *list_to_append) { - struct os_mbuf_pkthdr *pkthdr; - - STAILQ_FOREACH(pkthdr, list_to_append, omp_next) { - STAILQ_INSERT_TAIL(list, pk...
stm32l4: Fixed incomplete rcc clock handling
@@ -169,6 +169,14 @@ int _stm32_rccSetDevClock(unsigned int d, u32 hz) t = *(stm32_common.rcc + rcc_apb1enr1) & ~(1 << (d - apb1_1_begin)); *(stm32_common.rcc + rcc_apb1enr1) = t | (hz << (d - apb1_1_begin)); } + else if (d <= apb1_2_end) { + t = *(stm32_common.rcc + rcc_apb1enr2) & ~(1 << (d - apb1_2_begin)); + *(stm3...
KDB List: Restore mountpoint in MSR example
@@ -37,6 +37,7 @@ This command will list the name of all keys below a given path. ## EXAMPLES ```sh +# Backup-and-Restore: /sw/elektra/examples # Create the keys we use for the examples kdb set /sw/elektra/examples/kdb-ls/test val1
hw/drivers/sdadc_da1469x: Acquire PD_PER when GPADC is opened
#include <DA1469xAB.h> #include <mcu/mcu.h> +#include <mcu/da1469x_pd.h> #include "gpadc_da1469x/gpadc_da1469x.h" @@ -471,6 +472,8 @@ da1469x_gpadc_open(struct os_dev *odev, uint32_t wait, void *arg) return rc; } if (++dev->dgd_adc.ad_ref_cnt == 1) { + da1469x_pd_acquire(MCU_PD_DOMAIN_PER); + /* initialize */ if (da146...
mesh: Add net transmit status rx in config client Adds an opcode handler for the network transmit status opcode. this is port of
@@ -136,6 +136,27 @@ static void relay_status(struct bt_mesh_model *model, k_sem_give(&cli->op_sync); } +static void net_transmit_status(struct bt_mesh_model *model, + struct bt_mesh_msg_ctx *ctx, + struct os_mbuf *buf) +{ + uint8_t *status; + + BT_DBG("net_idx 0x%04x app_idx 0x%04x src 0x%04x len %u: %s", + ctx->net_i...
partially picked changes in
@@ -32,7 +32,7 @@ enum { HTTP_EVENT_SEND_RESP_HDR }; -struct event_t { +typedef struct st_http_event_t { uint8_t type; uint64_t conn_id; uint64_t req_id; @@ -46,12 +46,12 @@ struct event_t { char value[MAX_HDR_LEN]; } header; }; -}; +} http_event_t; BPF_PERF_OUTPUT(events); int trace_receive_request(struct pt_regs *ctx...
dshot: increase motor reverse command count
@@ -358,7 +358,7 @@ void motor_write(float *values) { if (time_millis() - dir_change_time < DSHOT_DIR_CHANGE_IDLE_TIME) { // give the motors enough time to come a full stop make_packet_all(0, false); - } else if (counter <= 12) { + } else if (counter <= 24) { const uint16_t value = motor_dir == MOTOR_REVERSE ? DSHOT_CM...
Add kscePowerSetDisplayBrightness to db.yml
@@ -6467,6 +6467,7 @@ modules: kscePowerSetBatteryFakeStatus: 0x0C6973B8 kscePowerSetBusClockFrequency: 0xB8D7B3FB kscePowerSetCompatClockFrequency: 0xFFC84E69 + kscePowerSetDisplayBrightness: 0x43D5CE1D kscePowerSetDisplayMaxBrightness: 0x77027B6B kscePowerSetGpuClockFrequency: 0x264C24FC kscePowerSetGpuXbarClockFrequ...
puff: Disable TCPMv2. On puff with TCPMv2 enabled, the type C mux is not being configured to allow USB 3. Disable TCPMv2 for now to unblock testing. BRANCH=None TEST=make buildall
#define CONFIG_CHARGER_INPUT_CURRENT 512 /* Allow low-current USB charging */ /* USB type C */ -/* Use TCPMv2 */ +/* TODO: (b/147255678) Use TCPMv2 */ +#if 0 #define CONFIG_USB_SM_FRAMEWORK +#endif + #undef CONFIG_USB_CHARGER #define CONFIG_USB_POWER_DELIVERY #define CONFIG_USB_PID 0x5040
Fix wrong creation of sensor nodes and device groups
@@ -1653,6 +1653,31 @@ void DeRestPluginPrivate::handleIndicationFindSensors(const deCONZ::ApsDataIndic findSensorCandidates.push_back(sc); return; } + else if (ind.profileId() == ZLL_PROFILE_ID || ind.profileId() == HA_PROFILE_ID) + { + switch (ind.clusterId()) + { + case ONOFF_CLUSTER_ID: + case SCENE_CLUSTER_ID: + i...
pic32mz: Fix remote_wakeup without OS Remote wakeup requires 10ms of delay when RESUME bit is toggled. It was covered for OS build. For non-OS build simple delay based on board_millis() is used to wait required amount of time. Without this remote wakup may not work.
@@ -163,6 +163,10 @@ void dcd_remote_wakeup(uint8_t rhport) USB_REGS->POWERbits.RESUME = 1; #if CFG_TUSB_OS != OPT_OS_NONE osal_task_delay(10); +#else + // TODO: Wait in non blocking mode + unsigned cnt = 2000; + while (cnt--) __asm__("nop"); #endif USB_REGS->POWERbits.RESUME = 0; }
added mssing default value for sim refclk_200
@@ -711,7 +711,7 @@ ARCHITECTURE afu OF afu IS SIGNAL c1_ddr3_ras_n : STD_LOGIC; -- only for DDR3_USED=TRUE SIGNAL c1_ddr3_reset_n : STD_LOGIC; -- only for DDR3_USED=TRUE SIGNAL c1_ddr3_we_n : STD_LOGIC; -- only for DDR3_USED=TRUE - SIGNAL refclk200_p : STD_LOGIC; -- only for DDR3_USED=TRUE + SIGNAL refclk200_p : STD_L...
Add doxygen comment for new kernel api : posix_spawn_file_actions_adddup2 posix_spawn_file_actions_adddup2() is a new api for TizenRT v1.1
@@ -197,13 +197,10 @@ int posix_spawn_file_actions_destroy(FAR posix_spawn_file_actions_t *file_action */ int posix_spawn_file_actions_addclose(FAR posix_spawn_file_actions_t *file_actions, int fd); /** - * @cond - * @internal + * @brief POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) + * @sinc...
interface: run chromatic on push to update baselines
@@ -4,6 +4,11 @@ on: pull_request: paths: - 'pkg/interface/**' + push: + paths: + - 'pkg/interface/**' + branches: + - 'release/next-userspace' jobs: chromatic-deployment:
Make page's header transparency 1
@@ -68,7 +68,7 @@ features : # Theme Settings topbar_color : "#000000" -topbar_transparency : 0.1 +topbar_transparency : 1 topbar_title_color : "#000000" cover_image : # Replace with alternative image path or image URL.
build: renew "Build Time" whenever building a new image This patch renews .version and version.h whenever building a new tizenrt image.
@@ -229,7 +229,7 @@ BIN_EXE = tinyara$(EXEEXT) BIN = $(BIN_DIR)/$(BIN_EXE) all: $(BIN) memstat -.PHONY: context clean_context check_context export subdir_clean clean subdir_distclean distclean apps_clean apps_distclean +.PHONY: context clean_context check_context export subdir_clean clean subdir_distclean distclean app...
config: make boolean value more flexible: on, true and yes (fix
@@ -324,8 +324,9 @@ static int set_log_level(struct flb_config *config, char *v_str) static inline int atobool(char*v) { - return (strncasecmp("true", v, 256) == 0 || - strncasecmp("on", v, 256) == 0) + return (strcasecmp("true", v) == 0 || + strcasecmp("on", v) == 0 || + strcasecmp("yes", v) == 0) ? FLB_TRUE : FLB_FAL...
Include time.h not matter if PROFILING_ENABLED is defined or not. Now that YR_RULE and YR_STRING always have a clock_ticks fields type clock_t must be defined.
@@ -39,10 +39,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <yara/threading.h> - -#ifdef PROFILING_ENABLED #include <time.h> -#endif #define DECLARE_REFERENCE(type, name) \
touch_sensor.c: Fix datatype of argument for timer callback function
@@ -432,7 +432,7 @@ esp_err_t touch_pad_filter_start(uint32_t filter_period_ms) } if (s_touch_pad_filter->timer == NULL) { s_touch_pad_filter->timer = xTimerCreate("filter_tmr", filter_period_ms / portTICK_PERIOD_MS, pdFALSE, - NULL, touch_pad_filter_cb); + NULL, (TimerCallbackFunction_t) touch_pad_filter_cb); if (s_to...
tmp floopy driver save, no test
@@ -11,6 +11,18 @@ static __inline unsigned char inb(int port) __asm __volatile("inb %w1,%0" : "=a" (data) : "d" (port)); return data; } +static __inline unsigned char inb_p(unsigned short port) +{ + unsigned char _v; + __asm__ __volatile__ ("inb %1, %0\n\t" + // "outb %0,$0x80\n\t" + // "outb %0,$0x80\n\t" + // "outb ...
Update the license for 2021
MIT License -Copyright (c) 2019-2020 Jason Hall +Copyright (c) 2019-2021 Jason Hall Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
Fix initial web header...
@@ -220,7 +220,7 @@ papplClientHTMLHeader( " <div class=\"header\">\n" " <div class=\"row\">\n" " <div class=\"col-3 nav\">\n" - " <a class=\"nav\" href=\"/\"><img class=\"nav\" src=\"/nav-icon.png\"> %s %s\n" + " <a class=\"nav\" href=\"/\"><img class=\"nav\" src=\"/nav-icon.png\"> %s %s</a>\n" " </div>\n" " <div clas...
rms/munge: update service patch for latest munge
---- src/etc/munge.service 2013-08-27 11:35:31.000000000 -0700 -+++ src/etc/munge.service 2014-11-10 11:37:55.104178894 -0800 +--- src/etc/munge.service.in 2013-08-27 11:35:31.000000000 -0700 ++++ src/etc/munge.service.in 2014-11-10 11:37:55.104178894 -0800 User=munge Group=munge
Do not include sparse_array.o in libssl with no-shared
@@ -102,7 +102,9 @@ $UTIL_COMMON=\ param_build_set.c der_writer.c threads_lib.c params_dup.c \ quic_vlint.c time.c +IF[{- !$disabled{shared} -}] SOURCE[../libssl]=sparse_array.c +ENDIF SOURCE[../libcrypto]=$UTIL_COMMON \ mem.c mem_sec.c \
zeromqsend: fix for failing MacOS tests
@@ -37,6 +37,8 @@ void * context; /** timeout for tests in seconds */ #define TEST_TIMEOUT 3 +#define TEST_ENDPOINT "ipc://testmod_zeromqsend" + /** * Create subscriber socket for tests. * @internal @@ -50,7 +52,7 @@ static void * createTestSocket (char * subscribeFilter) usleep (TIME_HOLDOFF); void * subSocket = zmq_s...
Update echo_example_main.c Fixed compile error in example. `error: designator order for field 'esp_ping_callbacks_t::cb_args' does not match declaration order in 'esp_ping_callbacks_t'`. Moved `.cb_args` in example to match declaration.
@@ -137,10 +137,10 @@ static int do_ping_cmd(int argc, char **argv) /* set callback functions */ esp_ping_callbacks_t cbs = { + .cb_args = NULL, .on_ping_success = cmd_ping_on_ping_success, .on_ping_timeout = cmd_ping_on_ping_timeout, - .on_ping_end = cmd_ping_on_ping_end, - .cb_args = NULL + .on_ping_end = cmd_ping_on...
module.c edited online with Bitbucket. Rory replaced AddModuleRadheat with fvAddModuleRadheat in module.c.
@@ -350,7 +350,7 @@ void FinalizeModule(BODY *body,MODULE *module,int iBody) { module->iaModule[iBody][iModule++] = DISTROT; } if (body[iBody].bRadheat) { - AddModuleRadheat(module,iBody,iModule); + fvAddModuleRadheat(module,iBody,iModule); module->iaModule[iBody][iModule++] = RADHEAT; } if (body[iBody].bThermint) {
Add working directory to module search path for debug mode or embedded mode.
@@ -2926,6 +2926,10 @@ def _cmd_setup_server(command, args, options): if options['python_paths'] is None: options['python_paths'] = [] + if options['debug_mode'] or options['embedded_mode']: + if options['working_directory'] not in options['python_paths']: + options['python_paths'].insert(0, options['working_directory'...
make test: rename dummy test name
@@ -8,7 +8,7 @@ from framework import VppTestCase, KeepAliveReporter class SanityTestCase(VppTestCase): - """ Dummy test case used to check if VPP is able to start """ + """ Sanity test case - verify if VPP is able to start """ pass if __name__ == '__main__':
Update example/https/README for name changes
@@ -7,7 +7,7 @@ After running `make examples`, if SSL is enabled, you can quickly test HTTPS, wi # Test without client auth # Run the server -./examples/example_https \ +./examples/example_https_server \ -cert examples/https/server-crt.pem \ -key examples/https/server-key.pem @@ -16,7 +16,7 @@ curl -vk https://localhos...
fixup: check Python version to decide the import
@@ -3,7 +3,12 @@ from copy import deepcopy from six import iteritems, string_types, integer_types import os import imp + +if sys.version_info >= (3, 3): from collections.abc import Iterable, Sequence, Mapping, MutableMapping +else: + from collections import Iterable, Sequence, Mapping, MutableMapping + import warnings ...
fix versor alignment
@@ -286,7 +286,7 @@ glm_quat_conjugate(versor q, versor dest) { CGLM_INLINE void glm_quat_inv(versor q, versor dest) { - CGLM_ALIGN(8) versor conj; + CGLM_ALIGN(16) versor conj; glm_quat_conjugate(q, conj); glm_vec4_scale(conj, 1.0f / glm_vec4_norm2(q), dest); }
cbm in load_model
@@ -2394,7 +2394,7 @@ class CatBoost(_CatBoostBase): ) self._save_model(fname, format, export_parameters, pool) - def load_model(self, fname, format='catboost'): + def load_model(self, fname, format='cbm'): """ Load model from a file.
Fix invalid Invalid character escape
@@ -615,7 +615,7 @@ if(RTOS_CHIBIOS_CHECK) else() # board NOT found in targets folder # can't continue - message(FATAL_ERROR "\n\nSorry but support for ${CHIBIOS_BOARD} target is not available...\n\You can wait for that to be added or you might want to contribute and start working on a PR for that.\n\n") + message(FATA...
Always create a key when importing Even if there is no data to import we should still create an empty key.
@@ -39,6 +39,13 @@ static int try_import(const OSSL_PARAM params[], void *arg) { struct import_data_st *data = arg; + /* Just in time creation of keydata */ + if (data->keydata == NULL + && (data->keydata = evp_keymgmt_newdata(data->keymgmt)) == NULL) { + ERR_raise(ERR_LIB_EVP, ERR_R_MALLOC_FAILURE); + return 0; + } + ...
Fix INTERFACE64 builds on riscv and loongarch
@@ -827,13 +827,32 @@ endif ifeq ($(ARCH), riscv64) NO_BINARY_MODE = 1 BINARY_DEFINED = 1 +ifdef INTERFACE64 +ifneq ($(INTERFACE64), 0) +ifeq ($(F_COMPILER), GFORTRAN) +FCOMMON_OPT += -fdefault-integer-8 +endif +ifeq ($(F_COMPILER), FLANG) +FCOMMON_OPT += -i8 +endif +endif +endif endif ifeq ($(ARCH), loongarch64) NO_BI...
Fixed minor typos in README Tested-by: IoTivity Jenkins
@@ -4,15 +4,15 @@ Java Language binding for IoTivity-lite using SWIG Introduction ================================================= This uses a tool called SWIG to generate Java language bindings for IoTivity-lite. SWIG is an -interface compiler that connect programs written in C and C++ with other languages such as Ja...
fix FIXME in transformStorageEncodingClause The parameter namespace passed to transformRelOptions routine has only tow values. One is 'toast',the other one is NULL. 'toast' value is to filter toast reloptions. NULL value is to get no-toast reloptions. In transformStorageEncodingClause routine just need to get no-toast ...
@@ -3612,8 +3612,6 @@ transformStorageEncodingClause(List *options) */ d = transformRelOptions(PointerGetDatum(NULL), list_concat(extra, options), - /* GPDB_84_MERGE_FIXME: do we need any - * namespaces? */ NULL, NULL, true, false); (void)heap_reloptions(RELKIND_RELATION, d, true);
docs: update asio docs with new example paths after refactor.
@@ -36,8 +36,7 @@ ESP examples are based on standard asio :example:`protocols/asio`: - :example:`protocols/asio/udp_echo_server` - :example:`protocols/asio/tcp_echo_server` -- :example:`protocols/asio/chat_client` -- :example:`protocols/asio/chat_server` +- :example:`protocols/asio/asio_chat` - :example:`protocols/asio...
fixed circle collision export
@@ -88,7 +88,7 @@ public class Collision extends Resource outS.append(" dc.w " + ccircle.ray + "\n"); outB.write(ccircle.x); outB.write(ccircle.y); - Util.outB(outB, ccircle.ray); + Util.outB(outB, (short) ccircle.ray); } else {
Fix nvs_flash_generate_keys Merges
@@ -571,16 +571,24 @@ extern "C" esp_err_t nvs_flash_generate_keys(const esp_partition_t* partition, n } for(uint8_t cnt = 0; cnt < NVS_KEY_SIZE; cnt++) { + /* Adjacent 16-byte blocks should be different */ + if (((cnt / 16) & 1) == 0) { cfg->eky[cnt] = 0xff; cfg->tky[cnt] = 0xee; + } else { + cfg->eky[cnt] = 0x99; + c...
Added debug print to restart and shutdown gateway
#ifdef ARCH_ARM #include <unistd.h> #include <sys/reboot.h> + #include <errno.h> #endif #include "colorspace.h" #include "de_web_plugin.h" @@ -11683,7 +11684,10 @@ void DeRestPluginPrivate::restartGatewayTimerFired() { //qApp->exit(APP_RET_RESTART_SYS); #ifdef ARCH_ARM - reboot(RB_AUTOBOOT); + if (reboot(RB_AUTOBOOT) =...
[numerics,swig] fix sparse deep copy on unzeroed pointers
@@ -175,7 +175,7 @@ typedef struct cs_sparse /* matrix in compressed-column or triplet form */ if (!res) { goto fail; } else if (res < 0) { SWIG_Error(SWIG_RuntimeError, "Error the matrix is not sparse!"); goto fail; } - M = (CSparseMatrix *) malloc(sizeof(CSparseMatrix)); + M = (CSparseMatrix *) calloc(sizeof(CSparseM...
Documentation change only: minor English correction in README.md.
@@ -12,9 +12,9 @@ Note: currently building/running/debugging is only supported on the following pl 1. Make sure you have Python 3.x installed and that it is in your `PATH` environment. Also make sure that `pip3` is accessable through your `PATH` environment. 2. Run either [setup_linux.sh](setup_linux.sh) or [setup_wind...
Make sure all appveyor artifacts get deployed
@@ -59,7 +59,7 @@ deploy: provider: GitHub auth_token: secure: lwEXy09qhj2jSH9s1C/KvCkAUqJSma8phFR+0kbsfUc3rVxpNK5uD3z9Md0SjYRx - artifact: /janet-.*/ + artifact: /janet.*/ draft: true on: APPVEYOR_REPO_TAG: true
Switch deprecation method for SEED
@@ -72,35 +72,38 @@ typedef struct seed_key_st { # endif } SEED_KEY_SCHEDULE; # endif /* OPENSSL_NO_DEPRECATED_3_0 */ - -DEPRECATEDIN_3_0(void SEED_set_key(const unsigned char rawkey[SEED_KEY_LENGTH], - SEED_KEY_SCHEDULE *ks)) - -DEPRECATEDIN_3_0(void SEED_encrypt(const unsigned char s[SEED_BLOCK_SIZE], +# ifndef OPENS...
cmd/kubectl-gadget: Print deploy command result
@@ -300,7 +300,11 @@ func runDeploy(cmd *cobra.Command, args []string) error { } } - if printOnly || !wait { + if printOnly { + return nil + } + if !wait { + info("Inspektor Gadget is being deployed\n") return nil } @@ -350,5 +354,11 @@ func runDeploy(cmd *cobra.Command, args []string) error { } }) + if err != nil { re...
ci: raise legacy adc high/low test low thresh
#elif CONFIG_IDF_TARGET_ESP32C3 #define ADC_TEST_LOW_VAL 0 -#define ADC_TEST_LOW_THRESH 30 +#define ADC_TEST_LOW_THRESH 50 #define ADC_TEST_HIGH_VAL 4095 #define ADC_TEST_HIGH_THRESH 10
Check that Yices and Z3 are executable right away
@@ -34,8 +34,9 @@ cd $DOWNLOAD_DIR curl https://s3-us-west-2.amazonaws.com/s2n-public-test-dependencies/z3-2017-04-04-Ubuntu14.04-64 > z3 curl https://saw.galois.com/builds/yices/yices_smt2-linux-static > yices_smt2 sudo chmod +x z3 -sudo chmod +x yices_smt2 +sudo chmod +x yices-smt2 mkdir -p $INSTALL_DIR/bin mv z3 $IN...
Add maximum to received frame streams frames.
/** the msec to wait for reconnect slow, to stop busy spinning on reconnect */ #define DTIO_RECONNECT_TIMEOUT_SLOW 1000 +/** maximum length of received frame */ +#define DTIO_RECV_FRAME_MAX_LEN 1000 + struct stop_flush_info; /** DTIO command channel commands */ enum { @@ -1031,6 +1034,12 @@ static int dtio_read_accept_...
Prevent flipping static actors
@@ -85,14 +85,14 @@ void UpdateActors_b() { } else if (actor->dir.x != 0) { fo = 2 + MUL_2(actor->sprite_type == SPRITE_ACTOR_ANIMATED); } - } - - LOG("RERENDER actor a=%u\n", a); // Facing left so flip sprite if (IS_NEG(actor->dir.x)) { LOG("AUR FLIP DIR X0\n"); flip = TRUE; } + } + + LOG("RERENDER actor a=%u\n", a); ...
nimble/mesh: using correct define name
#define MYNEWT_VAL_BLE_MESH_TX_SEG_MSG_COUNT (4) #endif -#ifndef MYNEWT_VAL_BLE_MESH_TX_SEG_RETRANSMIT_ATTEMPTS -#define MYNEWT_VAL_BLE_MESH_TX_SEG_RETRANSMIT_ATTEMPTS (2) +#ifndef MYNEWT_VAL_BLE_MESH_SEG_RETRANSMIT_ATTEMPTS +#define MYNEWT_VAL_BLE_MESH_SEG_RETRANSMIT_ATTEMPTS (2) #endif /*** net/nimble/host/services/a...
Added message notifying which language pack json to create if current language not supported.
@@ -2,7 +2,7 @@ import electron from "electron"; import en from "../../lang/en"; const app = electron.app || electron.remote.app; -const locale = app.getLocale() +const locale = app.getLocale(); let languageOverrides = {}; @@ -11,6 +11,9 @@ if (locale && locale !== "en") { languageOverrides = require(`../../lang/${loca...