message
stringlengths
6
474
diff
stringlengths
8
5.22k
clay: fix tests
file-store=~ *ford-cache:fusion == - =/ [res=vase nub=state:ford:fusion] (get-nave:ford %mime) + =/ [res=vase nub=state:ford:fusion] (build-nave:ford %mime) ;: weld %+ expect-eq !>(*mime) :: %+ expect-eq !> (~(gas in *(set path)) /mar/mime/hoon ~) - !> dez:(~(got by vases.cache.nub) /mar/mime/hoon) + !> dez:(~(got by f...
ipfix-export: fix the warning message for uninitialized variable Type: fix
@@ -349,8 +349,8 @@ vnet_ipfix_exp_send_buffer (vlib_main_t *vm, ipfix_exporter_t *exp, vlib_frame_t *f; ipfix_set_header_t *s; ipfix_message_header_t *h; - ip4_header_t *ip4; - ip6_header_t *ip6; + ip4_header_t *ip4 = 0; + ip6_header_t *ip6 = 0; void *ip; udp_header_t *udp; int ip_len;
openamp/libmetal: support other arch sim host Add support for x86, arm and arm64 host. Tested on M2 mac.
ifeq ($(CONFIG_OPENAMP),y) ifeq ($(CONFIG_ARCH), sim) +ifeq ($(CONFIG_HOST_ARM64), y) +LIBMETAL_ARCH = aarch64 +else ifeq ($(CONFIG_HOST_ARM), y) +LIBMETAL_ARCH = arm +else ifeq ($(CONFIG_HOST_X86), y) +LIBMETAL_ARCH = x86 +else LIBMETAL_ARCH = x86_64 +endif else ifeq ($(CONFIG_ARCH), risc-v) LIBMETAL_ARCH = riscv else...
fix make line
@@ -89,7 +89,7 @@ chmod 644 db/installdb db/prepsql db/upgradedb %configure \ --bindir=%{_sbindir} \ --sysconfdir=%{_sysconfdir}/nagios -make %{?_smp_mflags} +make %{?_smp_mflags} all DESTDIR=%{?buildroot} %install rm -rf %{buildroot} @@ -99,7 +99,7 @@ mkdir -p %{buildroot}%{_localstatedir}/cache/ndoutils mkdir -p %{bu...
zephyr/emul/emul_bmi160.c: Format with clang-format BRANCH=none TEST=none
@@ -714,8 +714,8 @@ static int bmi160_emul_handle_read(uint8_t *regs, struct i2c_emul *emul, bmi_emul_state_to_reg(emul, acc_shift, gyr_shift, BMI160_ACC_X_L_G, BMI160_GYR_X_L_G, - BMI160_SENSORTIME_0, - acc_off_en, gyr_off_en); + BMI160_SENSORTIME_0, acc_off_en, + gyr_off_en); } break; case BMI160_FIFO_LENGTH_0: @@ -7...
[CLI] Fix output format of gettx
@@ -41,6 +41,10 @@ func (b *InOutTxBody) String() string { return toString(b) } +func (t *InOutTx) String() string { + return toString(t) +} + func (t *InOutTxInBlock) String() string { return toString(t) }
stdlib.system: simplify output capture logic
package noarch import ( - "io" "math" "math/rand" "os" @@ -362,29 +361,11 @@ func System(str []byte) int32 { re := regexp.MustCompile(`[^\s"']+|([^\s"']*"([^"]*)"[^\s"']*)+|'([^']*)`) args := re.FindAllString(input, -1) cmd := exec.Command(args[0], args[1:]...) - var stdout, stderr []byte - var errStdout, errStderr err...
Fix use after scope exit on connection validate 0-RTT tests Since the context is passed to the connection, it needs to be alive as long as all the server side connections. The solution to this is to allocate the variable before even the registration is opened
@@ -547,6 +547,9 @@ ListenerFailSendResumeCallback( void QuicTestValidateConnection() { +#ifndef QUIC_DISABLE_0RTT_TESTS + QuicServerSendResumeState ListenerContext; +#endif MsQuicRegistration Registration(true); TEST_TRUE(Registration.IsValid()); @@ -935,7 +938,6 @@ void QuicTestValidateConnection() QuicAddr ServerLoc...
Remove logo with addition of GitHub dark theme Currently when viewing the README in dark mode the logo looks pretty awful. Until i can find a better way to select a logo based on the theme, i'll have to remove it for now.
-<p align="center"> - <a href="https://dictu-lang.com"> - <img src="docs/assets/images/dictu-logo/dictu-light-png-8x.png" alt="Dictu logo" width="560px"> - </a> -</p> - --------------------------------------------------------------------------------- - -[![Codacy Badge](https://api.codacy.com/project/badge/Grade/ab8405...
style(c_compiler) Make compile_c_file and compile_titan more consistent Now both only receive the input file names and the output is always implicit.
@@ -16,7 +16,10 @@ else c_compiler.CFLAGS_SHARED = "-fPIC -shared" end -function c_compiler.compile_c_file(c_filename, so_filename) +function c_compiler.compile_c_file(c_filename) + local name, ext = util.split_ext(c_filename) + assert(ext == "c") + local so_filename = name .. ".so" local args = { c_compiler.CC, c_comp...
fix precise matrix inv
@@ -478,7 +478,7 @@ glm_mat4_inv_precise(mat4 mat, mat4 dest) { #if defined( __SSE__ ) || defined( __SSE2__ ) glm_mat4_inv_precise_sse2(mat, dest); #else - glm_mat4_inv_precise(mat, dest); + glm_mat4_inv(mat, dest); #endif }
dump: prepare for version 2
@@ -92,20 +92,17 @@ int serialise (std::ostream & os, ckdb::Key *, ckdb::KeySet * ks) return 1; } -int unserialise (std::istream & is, ckdb::Key * errorKey, ckdb::KeySet * ks) +static int decodeLine (std::istream & is, ckdb::Key * parentKey, ckdb::KeySet * ks, std::string & line, ckdb::Key ** curPtr) { - ckdb::Key * cu...
Fix SceIofilemgrForDriver function nids
@@ -2715,11 +2715,13 @@ modules: ksceVfsDeleteVfs: 0x9CBFA725 ksceVfsFreeVnode: 0x21D57633 ksceVfsGetNewNode: 0xD60B5C63 + ksceVfsLockMnt: 0x6B3CA9F7 ksceVfsMount: 0xB62DE9A6 ksceVfsNodeSetEventFlag: 0x6048F245 ksceVfsNodeWaitEventFlag: 0xAA45010B ksceVfsOpDecodePathElem: 0xF7DAC0F5 ksceVfsOpDevctl: 0xB07B307D + ksceVf...
mangle: update slowness factors
@@ -836,16 +836,16 @@ void mangle_mangleContent(run_t* run, unsigned slow_factor) { } uint64_t changesCnt = run->global->mutate.mutationsPerRun; - /* Give it a good shake-up if it's a slow input */ + /* Give it a good shake-up, if it's a slow input */ switch (slow_factor) { - case 0 ... 2: + case 0 ... 5: changesCnt = ...
doc: fix review comment
## Problem -Only the plugin `dump` and `quickdump` are able to represent any KeySet +Only plugins like `dump` and `quickdump` are able to represent any KeySet (as they are designed to do so). Limitations of any other storage plugins are: - that not every structure of configuration is allowed.
travis: try and avoid autotools kicking in
@@ -14,8 +14,8 @@ matrix: compiler: gcc script: - # workaround git not retaining mtimes and bison/flex not being uptodate - - touch conffile.yy.c conffile.tab.c conffile.tab.h + # workaround git not retaining mtimes and bison/flex/auto not being uptodate + - touch conffile.yy.c conffile.tab.c conffile.tab.h configure M...
Update Luos version number for release 2.1.1
"name": "Luos", "keywords": "robus,network,microservice,luos,operating system,os,embedded,communication,service,ST", "description": "Luos turns your embedded system into services like microservices architecture does it in software.", - "version": "2.1.0", + "version": "2.1.1", "authors": { "name": "Luos", "url": "https...
[software] Calculate stack based on linker script
@@ -53,8 +53,7 @@ _reset_vector: li x29, 0 li x30, 0 li x31, 0 - la sp, tcdm_start_address_reg // load stack top from peripheral register - lw sp, 0(sp) + la sp, __stack_start // load stack csrr a0, mhartid // get hart id #ifdef TOP4_STACK srli t0, a0, 4 // id / 16
Further optimizations of pake set_password implementation
@@ -274,19 +274,19 @@ psa_status_t psa_pake_set_password_key( psa_pake_operation_t *operation, if( ( usage & PSA_KEY_USAGE_DERIVE ) == 0 ) return( PSA_ERROR_NOT_PERMITTED ); + if( operation->password != NULL ) + return( PSA_ERROR_BAD_STATE ); + status = psa_get_and_lock_key_slot_with_policy( password, &slot, PSA_KEY_US...
framework/st_things: Added missed-out mutex lock and unlock in ping. Shared variables such as 'mutex_ping_list' and 'mutex_state' weren't locked before access in check_ping_thread() and unset_mask respectively. This patch addresses the problem.
@@ -651,8 +651,10 @@ static void check_ping_thread(things_ping_s *ping) return; } + pthread_mutex_lock(&mutex_ping_list); if (list == NULL) { THINGS_LOG_V(TAG, "OICPing Module is not initialized."); + pthread_mutex_unlock(&mutex_ping_list); return; } @@ -674,6 +676,8 @@ static void check_ping_thread(things_ping_s *ping...
Updated code lite to properly add LD_LIBRARY_PATH is set if libdirs is set
end, -- source files are handled at the leaves onleaf = function(node, depth) - local excludesFromBuild = {} for cfg in project.eachconfig(prj) do local cfgname = codelite.cfgname(cfg) _p(depth, '<File Name="%s"/>', node.relpath) end end, - }, false, 1) + }, true) end function m.dependencies(prj) local pauseexec = iif(...
ACRN:DM: Fix the bug introduced by Fix the bug introduced by There had a typo that added the "&" by mistake. Acked-by: Wang, Yu1
@@ -1817,7 +1817,7 @@ pci_xhci_insert_event(struct pci_xhci_vdev *xdev, int erdp_idx; rts = &xdev->rtsregs; - if (&rts->erstba_p == NULL) { + if (rts->erstba_p == NULL) { UPRINTF(LFTL, "Invalid Event Ring Segment Table base address!\r\n"); return -EINVAL; }
Defend against writing beyond the end of the payload in _libssh2_transport_read().
@@ -478,8 +478,12 @@ int _libssh2_transport_read(LIBSSH2_SESSION * session) /* copy the data from index 5 to the end of the blocksize from the temporary buffer to the start of the decrypted buffer */ + if (blocksize - 5 <= total_num) { memcpy(p->wptr, &block[5], blocksize - 5); p->wptr += blocksize - 5; /* advance writ...
Fix about window debug version, Update about window text
* about dialog * * Copyright (C) 2010-2016 wj32 + * Copyright (C) 2017 dmex * * This file is part of Process Hacker. * @@ -48,7 +49,7 @@ static INT_PTR CALLBACK PhpAboutDlgProc( PhCenterWindow(hwndDlg, GetParent(hwndDlg)); -#if (PHAPP_VERSION_REVISION != 0) +#if (PHAPP_VERSION_REVISION != 0x0D06F00D) appName = PhFormat...
workflows/manually_compile_check_image: refactor with job matrix
@@ -5,79 +5,14 @@ on: [workflow_dispatch] jobs: generate-centos-image: - # GitHub Actions doesn't have CentOS VM provided - runs-on: ubuntu-18.04 - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - # Because "Build and push" step `context` field can't be subdir, - # we need to copy files needed by docker...
arm/imx6ull: fixed rebooting after watchdog timeout
@@ -199,26 +199,6 @@ dcd_ddr: .word SWAP(0x82180000) .word SWAP(0x021b0890) .word SWAP(0x00400000) - .word SWAP(0x021b001c) - .word SWAP(0x02008032) - .word SWAP(0x021b001c) - .word SWAP(0x00008033) - .word SWAP(0x021b001c) - .word SWAP(0x00048031) - .word SWAP(0x021b001c) - .word SWAP(0x15208030) - .word SWAP(0x021b00...
profile: add smart audio define
@@ -206,8 +206,16 @@ const profile_t default_profile = { }, .serial = { +#ifdef RX_USART .rx = RX_USART, - .smart_audio = -1, +#else + .rx = USART_PORT_INVALID, +#endif +#ifdef SMART_AUDIO_USART + .smart_audio = SMART_AUDIO_USART, +#else + .smart_audio = USART_PORT_INVALID, +#endif }, .rate = {
Avoid pointer casting by slicing. It's a bit cleaner to do it this way.
@@ -16,14 +16,13 @@ const cstrconv = {buf } const cstrconvp = {p - var i, base + var len - i = 0 - base = (p : intptr) - while (base + i : byte#)# != 0 - i++ + len = 1 + while p[:len][len -1] != 0 + len++ ;; - -> p[:i] + -> p[:len-1] } const cstrlen = {buf
remove nokogiri gem dependency from gem build time
require 'zip' require 'singleton' -require 'nokogiri' module AndroidTools @@ -249,6 +248,7 @@ class MavenDepsExtractor end def extract_packages + require 'nokogiri' packages = [] @manifests.each do |m| doc = File.open(m) { |f| Nokogiri::XML(f) }
stream reuse, test with connection drops.
@@ -213,6 +213,24 @@ for x in a1.more.net a2.more.net a3.more.net a4.more.net a5.more.net; do fi done +# dropconn.drop.net make the server drop the connection. +echo "> query a11.more.net a12.more.net dropconn.drop.net a14.more.net a15.more.net" +$PRE/streamtcp -a -f 127.0.0.1@$UNBOUND_PORT a11.more.net A IN a12.more.n...
Ignore deleted files in rsync to test/repo. Deleted files are showing up in git ls-files (added 57d78092) but they don't actually exist on disk. If there is someway to exclude deleted files from ls-files then I can't find it, so just tell rsync to ignore missing files.
@@ -388,8 +388,8 @@ eval trim( executeTest( "git -C ${strBackRestBase} ls-files -c --others --exclude-standard |" . - " rsync -rtW --out-format=\"\%n\" --delete --exclude=repo.manifest ${strBackRestBase}/" . - " --files-from=- ${strRepoCachePath}")))); + " rsync -rtW --out-format=\"\%n\" --delete --ignore-missing-args ...
closed \tt bracket
@@ -65,7 +65,7 @@ This note describes how to install {\tt CCL} (Section \ref{sec:install}), its fu \section{Installation} \label{sec:install} \subsection{Dependencies} -{\tt CCL} requires the GNU Scientific Library \tt{GSL}\footnote{\url{https://www.gnu.org/software/gsl/}}, {\tt GSL-2.1} or higher. +{\tt CCL} requires ...
platformio build fix
@@ -314,7 +314,7 @@ M3Result PreserveRegisterIfOccupied (IM3Compilation o, u8 i_registerType) u8 type = GetStackBottomType (o, stackIndex); // and point to a exec slot - u16 slot; + u16 slot = c_slotUnused; _ (AllocateSlots (o, & slot, type)); o->wasmStack [stackIndex] = slot;
Passing correct arg to cn_tree_max_depth() to avoid assert cn_tree_max_depth() takes fanout as arg. Passing log base 2 of fanout can lead to an assert.
@@ -1201,7 +1201,7 @@ cn_open( " kb %lu%c/%lu vb %lu%c/%lu %s%s%s%s%s%s", cn->cn_kvdb_alias, cn->cn_kvsname, (ulong)cnid, cn->cp->fanout, cn->cp->pfx_len, cn->cp->pfx_pivot, - ctx.ckmk_node_level_max, cn_tree_max_depth(ilog2(cn->cp->fanout)), + ctx.ckmk_node_level_max, cn_tree_max_depth(cn->cp->fanout), ksz >> (kshift ...
docs: update description of bcc python BPF()
@@ -1449,6 +1449,7 @@ The `debug` flags control debug output, and can be or'ed together: - `DEBUG_PREPROCESSOR = 0x4` pre-processor result - `DEBUG_SOURCE = 0x8` ASM instructions embedded with source - `DEBUG_BPF_REGISTER_STATE = 0x10` register state on all instructions in addition to DEBUG_BPF +- `DEBUG_BTF = 0x20` pr...
Configure, build.info: make it possible to use variables in indexes That will make it possible to assign different goals for translation units depending on need.
@@ -1742,11 +1742,19 @@ if ($builder eq "unified") { my $value = ''; my $value_rest = shift; + if ($ENV{CONFIGURE_DEBUG_VARIABLE_EXPAND}) { + print STDERR + "DEBUG[\$expand_variables] Parsed '$value_rest' into:\n" + } while ($value_rest =~ /(?<!\\)${variable_re}/) { $value .= $`; $value .= $variables{$1}; $value_rest =...
util: support ec_parse_panicinfo to parse RV32i BRANCH=none TEST=emerge-asurada ec-utils && cros deploy $DUT ec-utils && /usr/sbin/ec_parse_panicinfo < x.eccrash
@@ -94,6 +94,35 @@ static int parse_panic_info_nds32(const struct panic_data *pdata) return 0; } +static int parse_panic_info_rv32i(const struct panic_data *pdata) +{ + uint32_t *regs, mcause, mepc; + + regs = (uint32_t *)pdata->riscv.regs; + mcause = pdata->riscv.mcause; + mepc = pdata->riscv.mepc; + + printf("=== EXC...
Disable legacy time cluster handling
@@ -1242,7 +1242,7 @@ void DeRestPluginPrivate::apsdeDataIndication(const deCONZ::ApsDataIndication &i break; case TIME_CLUSTER_ID: - handleTimeClusterIndication(ind, zclFrame); + if (!DEV_TestStrict()) { handleTimeClusterIndication(ind, zclFrame); } break; case WINDOW_COVERING_CLUSTER_ID: @@ -4304,6 +4304,8 @@ void De...
when exceed max reass, frag packet can't get reass. adding bihash,it can rewrite new hash value. so need to delete hash after compare hash value.
@@ -228,7 +228,7 @@ nat_ip4_reass_find_or_create (ip4_address_t src, ip4_address_t dst, dlist_elt_t *oldest_elt, *elt; dlist_elt_t *per_reass_list_head_elt; u32 oldest_index, elt_index; - clib_bihash_kv_16_8_t kv; + clib_bihash_kv_16_8_t kv, value; k.src.as_u32 = src.as_u32; k.dst.as_u32 = dst.as_u32; @@ -273,13 +273,1...
config_format: use 'compat' interface
#include <fluent-bit/flb_log.h> #include <fluent-bit/flb_mem.h> #include <fluent-bit/flb_kv.h> +#include <fluent-bit/flb_compat.h> + #include <monkey/mk_core.h> #include <ctype.h> #include <sys/types.h> #include <sys/stat.h> -#include <unistd.h> - #ifndef _MSC_VER #include <glob.h> #endif
Fix inconsistent "defined()" operator usage which causes compile warnings if undefined.
#include <ngtcp2/ngtcp2.h> -#if defined HAVE_BSWAP_64 || HAVE_DECL_BSWAP_64 +#if defined(HAVE_BSWAP_64) || (defined(HAVE_DECL_BSWAP_64) && HAVE_DECL_BSWAP_64 > 0) # define ngtcp2_bswap64 bswap_64 #else /* !HAVE_BSWAP_64 */ # define ngtcp2_bswap64(N) \ ((uint64_t)(ntohl((uint32_t)(N))) << 32 | ntohl((uint32_t)((N) >> 32...
After parsing load colors make sure it has a size of 3
@@ -162,6 +162,10 @@ parse_load_color(const char *str) trim(token); load_colors.push_back(std::stoi(token, NULL, 16)); } + while (load_colors.size() != 3) { + load_colors.push_back(std::stoi("FFFFFF" , NULL, 16)); + } + return load_colors; }
servo: definition for malloc on stm32 ports For now, this is to ensure that the stm32 builds continue to compile while developing for EV3.
#include "lib/utils/pyexec.h" #include "lib/utils/interrupt_char.h" +// FIXME: Decide whether or not to pre-allocate +// memory for logging instead or just disable +// logging altogether on some constrained ports. +void *malloc(size_t n) { + return m_malloc(n); +} +void free(void *p) { + m_free(p); +} + static char *st...
Define QUIC transport error code using macro QUIC transport error code is 62-bit value and ANSI C does not like it in enum.
@@ -277,25 +277,20 @@ typedef enum ngtcp2_pkt_type { NGTCP2_PKT_SHORT = 0x70 } ngtcp2_pkt_type; -#if defined(__cplusplus) && __cplusplus >= 201103L -typedef enum ngtcp2_transport_error : int { -#else -typedef enum ngtcp2_transport_error { -#endif - NGTCP2_NO_ERROR = 0x0u, - NGTCP2_INTERNAL_ERROR = 0x1u, - NGTCP2_SERVER...
allowed pasting palette < 16 colors
@@ -612,19 +612,15 @@ static void removeWhiteSpaces(char* str) } bool fromClipboard(void* data, s32 size, bool flip, bool remove_white_spaces) -{ - if(data) { if(tic_sys_clipboard_has()) { char* clipboard = tic_sys_clipboard_get(); - if(clipboard) - { if (remove_white_spaces) removeWhiteSpaces(clipboard); - bool valid ...
PKG_USING_TFM: Use TFM package macro instead RT_USING_TFM was duplicate macro. Remove it.
* 2010-05-02 Aozima update CMSIS to 130 * 2017-08-02 XiaoYang porting to LPC54608 bsp * 2019-08-05 Magicoe porting to LPC55S69-EVK bsp - * 2020-01-01 Karl Add RT_USING_TFM support + * 2020-01-01 Karl Add PKG_USING_TFM support */ #include <rthw.h> @@ -59,7 +59,7 @@ void rt_hw_board_init() SCB->VTOR = (0x10000000 & NVIC_...
interface: do not wait for deletion before navigation Fixes urbit/landscape#706
@@ -24,9 +24,9 @@ export function DeleteGroup(props: { return; } if(props.owner) { - await props.api.groups.deleteGroup(ship, name); + props.api.groups.deleteGroup(ship, name); } else { - await props.api.groups.leaveGroup(ship, name); + props.api.groups.leaveGroup(ship, name); } history.push('/'); };
deterministic archives
@@ -41,7 +41,15 @@ ifeq ($(BUILDTYPE), MacOSX) MACPORTS?=1 endif -ARFLAGS ?= r + +ifeq ($(BUILDTYPE), Linux) + # as the defaults changed on most Linux distributions + # explicitly specify non-deterministic archives to not break make + ARFLAGS ?= rsU +else + ARFLAGS ?= rs +endif + # Paths
Force tile sizes to be less than INT_MAX bytes, in line with the maximum dimensions of data windows
@@ -902,7 +902,7 @@ Header::sanityCheck (bool isTiled, bool isMultipartFile) const const TileDescription &tileDesc = tileDescription(); - if (tileDesc.xSize <= 0 || tileDesc.ySize <= 0) + if (tileDesc.xSize <= 0 || tileDesc.ySize <= 0 || tileDesc.xSize > INT_MAX || tileDesc.ySize > INT_MAX ) throw IEX_NAMESPACE::ArgExc...
Fix sslapitest when compiled with no-tls1_2
@@ -477,6 +477,7 @@ end: } #endif +#ifndef OPENSSL_NO_TLS1_2 static int full_early_callback(SSL *s, int *al, void *arg) { int *ctr = arg; @@ -559,6 +560,7 @@ end: return testresult; } +#endif static int execute_test_large_message(const SSL_METHOD *smeth, const SSL_METHOD *cmeth, int read_ahead) @@ -1568,7 +1570,9 @@ in...
Changed "path" to "directory" in configure summary. The "directory" is more specific term, similar to "file".
@@ -7,10 +7,11 @@ cat << END Configuration summary: - unit bin path: "$NXT_BINDIR" - unit sbin path: "$NXT_SBINDIR" - unit modules path: "$NXT_MODULES" - unit state path: "$NXT_STATE" + unit bin directory: "$NXT_BINDIR" + unit sbin directory: "$NXT_SBINDIR" + unit modules directory: "$NXT_MODULES" + unit state director...
smatrix: removing liquid.internal.h include in example
-// -// smatrix_example.c -// - +// test sparse matrix operations #include <stdlib.h> #include <stdio.h> #include <getopt.h> #include <math.h> - -#include "liquid.internal.h" +#include "liquid.h" int main(int argc, char*argv[]) {
sixtop example: remove obsolete z1 configuration
/************* Other system configuration **************/ /*******************************************************/ -#if CONTIKI_TARGET_Z1 -/* Save some space to fit the limited RAM of the z1 */ -#define UIP_CONF_TCP 0 -#define QUEUEBUF_CONF_NUM 2 -#define NETSTACK_MAX_ROUTE_ENTRIES 2 -#define NBR_TABLE_CONF_MAX_NEIGHB...
Fix binary backward compatibility to celix 2.1
@@ -302,7 +302,7 @@ void celix_dependencyManager_destroyInfos(celix_dependency_manager_t *manager, c celix_status_t dependencyManager_create(bundle_context_pt context, celix_dependency_manager_t **out) { celix_status_t status = CELIX_SUCCESS; - celix_dependency_manager_t *manager = celix_private_dependencyManager_creat...
vere: account for scry callback bugfix The addition of ~ was, indeed, in error. See also
@@ -645,7 +645,7 @@ static void _ames_lane_scry_cb(void* vod_p, u3_noun nun) { u3_panc* pac_u = vod_p; - u3_weak las = u3r_at(15, nun); //TODO why [~ %noun ~ lane] + u3_weak las = u3r_at(7, nun); // if scry fails, remember we can't scry, and just inject the packet // @@ -1065,7 +1065,7 @@ static void _ames_prot_scry_cb...
provisioning/warewulf-vnfs: include langpack for centos8; otherwise users will see setlocale warnings
zlib tar less gzip which util-linux openssh-clients openssh-server dhclient pciutils vim-minimal shadow-utils - strace cronie crontabs cpio wget redhat-release" -+ strace cronie crontabs cpio wget redhat-release hostname grub2-common" ++ strace cronie crontabs cpio wget redhat-release hostname grub2-common glibc-langpa...
hardcode number of threads to 8 for ppc and add a backup method to get AOMP_PROC.
@@ -33,6 +33,9 @@ CUDABIN=${CUDABIN:-$CUDA/bin} AOMP_CMAKE=${AOMP_CMAKE:-cmake} AOMP_PROC=`uname -p` +if [ "$AOMP_PROC" == "unknown" ] ; then + AOMP_PROC=`uname -a | awk '{print $(NF-1)}'` +fi AOMP_STANDALONE_BUILD=${AOMP_STANDALONE_BUILD:-1} @@ -80,7 +83,10 @@ export GFXLIST NUM_THREADS= if [ ! -z `which "getconf"` ];...
audio: add lock in audio_send_digit
@@ -2052,8 +2052,10 @@ int audio_send_digit(struct audio *a, char key) else if (a->tx.cur_key && a->tx.cur_key != KEYCODE_REL) { /* Key release */ info("audio: send DTMF digit end: '%c'\n", a->tx.cur_key); + lock_write_get(a->tx.lock); err = telev_send(a->telev, telev_digit2code(a->tx.cur_key), true); + lock_rel(a->tx....
Add note to comment for int64 typedef.
@@ -27,7 +27,7 @@ should be created. See the CheckPoint type difference between 9.5 and 9.6 as an Types from src/include/c.h ***********************************************************************************************************************************/ -// int64 type +// int64 type. The definition in c.h is more c...
Check if LED4 and CAN are enabled in main.
@@ -446,7 +446,9 @@ int main(void) __enable_irq(); soft_reset: + #if defined(MICROPY_HW_LED4) led_state(LED_IR, 0); + #endif led_state(LED_RED, 1); led_state(LED_GREEN, 1); led_state(LED_BLUE, 1); @@ -475,7 +477,9 @@ soft_reset: pin_init0(); extint_init0(); timer_init0(); + #if MICROPY_HW_ENABLE_CAN can_init0(); + #end...
net socket documentation clarification in FAQ
@@ -195,12 +195,15 @@ All Lua callbacks are called by C wrapper functions within the NodeMCU libraries * If you are running out of memory, then you might not be correctly clearing down Registry entries. One example is as above where you are setting up timers but not unregistering them. Another occurs in the following c...
opal-prd: Fix memory leak in is-fsp-system check
@@ -255,6 +255,7 @@ static void pr_log_daemon_init(void) /* Check service processor type */ static bool is_fsp_system(void) { + bool fsp_system = true; char *path; int rc; @@ -264,7 +265,11 @@ static bool is_fsp_system(void) return false; } - return access(path, F_OK) ? false : true; + if (access(path, F_OK)) + fsp_sys...
Number of bins change on keyboard tracking when hit apply
@@ -144,7 +144,7 @@ QvisHistogramPlotWindow::CreateWindowContents() hgLayout->addWidget(numBinsLabel, 0, 0); numBins = new QSpinBox(central); - numBins->setKeyboardTracking(false); + numBins->setKeyboardTracking(true); numBins->setMinimum(2); numBins->setMaximum(1000); numBins->setSingleStep(1);
Change the TextBenchMarkTest name to be proper
@@ -233,9 +233,9 @@ public: BENCHMARK_F(CoreText, CTFrameDrawComplete); -class CTFrameDrawYuge : public TextBenchmarkBase { +class CTFrameDrawHuge : public TextBenchmarkBase { public: - CTFrameDrawYuge() { + CTFrameDrawHuge() { CTParagraphStyleSetting setting; CTTextAlignment alignment = kCTCenterTextAlignment; setting...
Add an option for 512 byte requests to host_exerciser
@@ -84,6 +84,7 @@ typedef enum { HOSTEXE_CLS_1 = 0x0, HOSTEXE_CLS_2 = 0x1, HOSTEXE_CLS_4 = 0x2, + HOSTEXE_CLS_8 = 0x3, } hostexe_req_len; @@ -292,6 +293,7 @@ const std::map<std::string, uint32_t> he_req_cls_len= { { "cl_1", HOSTEXE_CLS_1}, { "cl_2", HOSTEXE_CLS_2}, { "cl_4", HOSTEXE_CLS_4}, + { "cl_8", HOSTEXE_CLS_8}, ...
[mechanics_io] fix record to file in verbose mode
@@ -2878,7 +2878,8 @@ class Hdf5(): log(simulation.computeOneStep, with_timer)() - if verbose and (k % self._output_frequency == 0) or (k == 1): + if (k % self._output_frequency == 0) or (k == 1): + if verbose: print_verbose ('output in hdf5 file at step ', k) log(self.outputDynamicObjects, with_timer)()
Small fixes merge from v2.
@@ -288,7 +288,7 @@ static void CreateMesh() vbInfo.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT; vbInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE; VmaMemoryRequirements vbMemReq = {}; - vbMemReq.usage = VMA_MEMORY_USAGE_CPU_TO_GPU; + vbMemReq.usage = VMA_MEMORY_USAGE_CPU_ONLY; VkMappedMemoryRange stagingVertexBufferMem; VkB...
common/wireless.c: Format with clang-format BRANCH=none TEST=none
@@ -34,13 +34,11 @@ static int suspend_flags = CONFIG_WIRELESS_SUSPEND; static void wireless_enable(int flags) { #ifdef WIRELESS_GPIO_WLAN - gpio_set_level(WIRELESS_GPIO_WLAN, - flags & EC_WIRELESS_SWITCH_WLAN); + gpio_set_level(WIRELESS_GPIO_WLAN, flags & EC_WIRELESS_SWITCH_WLAN); #endif #ifdef WIRELESS_GPIO_WWAN - gp...
pbio/tacho: Read absolute count during reset. When resetting to the absolute value, it is helpful to know which value it was set to. This will be used by the servo in subsequent commits.
@@ -42,19 +42,18 @@ static pbio_error_t pbio_tacho_reset_count(pbio_tacho_t *tacho, int32_t reset_co return PBIO_SUCCESS; } -static pbio_error_t pbio_tacho_reset_count_to_abs(pbio_tacho_t *tacho) { +static pbio_error_t pbio_tacho_reset_count_to_abs(pbio_tacho_t *tacho, int32_t *abs_count) { - int32_t abs_count; - pbio_...
rpz-triggers, fix that after cname an nsdname or nsip trigger has cname rrsets prepended by the iterator.
@@ -2479,6 +2479,10 @@ processQueryTargets(struct module_qstate* qstate, struct iter_qstate* iq, qstate->return_rcode = FLAGS_GET_RCODE(forged_response->rep->flags); qstate->return_msg = forged_response; next_state(iq, FINISHED_STATE); + if(!iter_prepend(iq, qstate->return_msg, qstate->region)) { + log_err("rpz, prepen...
UIModule GPose/Idle Cam Functions
@@ -2883,6 +2883,10 @@ classes: 66: GetLogFilterConfig 68: EnableCutsceneInputMode 69: DisableCutsceneInputMode + 75: EnterGPose + 76: ExitGPose + 78: EnterIdleCam + 79: ExitIdleCam 88: ShowEurekaHud 89: HideEurekaHud 95: OpenMycInfo
Updated style of timer
++ prep |= old=(unit tim=@da) ^- (quip move _this) - =/ lismov/(list move) %+ weld - `(list move)`[ost.bol %connect / [~ /'~timer'] %timer]~ - `(list move)`[ost.bol %poke /timer [our.bol %launch] [%noun [%timer /tile '/~timer/js/tile.js']]]~ - :- lismov + =/ launchnoun [%noun [%timer /tile '/~timer/js/tile.js']] + :- +...
net/ping: Fix wrong conditional compile. common part not run when LWIP_IPV6 is enabled.
@@ -289,11 +289,10 @@ static void nu_ping_prepare_echo(int family, struct icmp_echo_hdr *iecho, u16_t if (family == AF_INET6) { icmp_hdrlen = sizeof(struct icmp6_echo_hdr); } else -#else +#endif { icmp_hdrlen = sizeof(struct icmp_echo_hdr); } -#endif ICMPH_CODE_SET(iecho, 0); iecho->id = PING_ID; ++g_ping_seq_num;
APPS/cmp.c: Move warning on overlong section name to make it effective again Fixes
@@ -2001,14 +2001,14 @@ static const char *prev_item(const char *opt, const char *end) while (beg != opt && beg[-1] != ',' && !isspace(beg[-1])) beg--; len = end - beg; - if (len > SECTION_NAME_MAX) + if (len > SECTION_NAME_MAX) { + CMP_warn2("using only first %d characters of section name starting with \"%s\"", + SECT...
integration: Add test for dns.
@@ -104,6 +104,28 @@ func TestMain(m *testing.M) { os.Exit(ret) } +func TestDns(t *testing.T) { + dnsCmd := &command{ + name: "Start dns gadget", + cmd: "$KUBECTL_GADGET dns -n test-ns", + expectedRegexp: `test-pod\s+OUTGOING\s+microsoft.com`, + startAndStop: true, + } + + commands := []*command{ + dnsCmd, + { + name: ...
resgroup: workaround invalid cpu.cfs_quota_us. CGroup promises that cfs_quota_us will never be 0, however on centos6 we ever noticed that it has the value 0.
@@ -1188,7 +1188,11 @@ initCpu(void) int64 cfs_quota_us; int64 shares; - if (parent_cfs_quota_us < 0LL) + /* + * CGroup promises that cfs_quota_us will never be 0, however on centos6 + * we ever noticed that it has the value 0. + */ + if (parent_cfs_quota_us <= 0LL) { /* * parent cgroup is unlimited, calculate gpdb's l...
mtd/progmem: fix incorrect range of cache invalidatation on erase up_progmem_erasepage() is invalidating too small range of data cache. We should invalidate whole region of block unit which might be different with page size. This fixes the smart and smartfs malfunctioning when block and page units different.
@@ -129,12 +129,12 @@ ssize_t up_progmem_erasepage(size_t page) s5j_sflash_enable_wp(); /* Invalidate cache */ - arch_invalidate_dcache(addr, addr + up_progmem_pagesize(page)); + arch_invalidate_dcache(addr, addr + up_progmem_blocksize()); /* Restore IRQs */ irqrestore(irqs); - return up_progmem_pagesize(page); + retur...
Dont early skip on successful picoquit_ct test
@@ -68,9 +68,7 @@ script: - if [ "$CHECK" == "cppcheck" ]; then cppcheck --project=compile_commands.json --quiet; fi - ${EXTRA} make - ulimit -c unlimited -S - - ./picoquic_ct -n -r && RESULT=$? - # Early out if the program exited successfully - - if [[ ${RESULT} == 0 ]]; then exit 0; fi; - - ./picohttp_ct -n -r && RES...
harness: increase the default test timeout
@@ -14,8 +14,8 @@ from tests import Test from harness import Harness RAW_TEST_OUTPUT_FILENAME = Harness.RAW_FILE_NAME -DEFAULT_TEST_TIMEOUT = datetime.timedelta(seconds=360) -DEFAULT_BOOT_TIMEOUT = datetime.timedelta(seconds=240) +DEFAULT_TEST_TIMEOUT = datetime.timedelta(seconds=600) +DEFAULT_BOOT_TIMEOUT = datetime.t...
Add name string to types
@@ -44,11 +44,11 @@ extern __attribute__((noreturn)) void error(const char* str, ...); #define INTERFACE(X) X INTERFACE -typedef const struct typeid_s { int size; } TYPEID; +typedef const struct typeid_s { int size; const char* name; } TYPEID; #define TYPEID2(T) (T ## _TYPEID) #define TYPEID(T) (*({ extern TYPEID T ## ...
py/vm: Use enum names instead of magic numbers in multi-opcode dispatch.
@@ -1270,10 +1270,10 @@ yield: } else if (ip[-1] < MP_BC_STORE_FAST_MULTI + 16) { fastn[MP_BC_STORE_FAST_MULTI - (mp_int_t)ip[-1]] = POP(); DISPATCH(); - } else if (ip[-1] < MP_BC_UNARY_OP_MULTI + 7) { + } else if (ip[-1] < MP_BC_UNARY_OP_MULTI + MP_UNARY_OP_NUM_BYTECODE) { SET_TOP(mp_unary_op(ip[-1] - MP_BC_UNARY_OP_M...
revert merge mistake
@@ -537,7 +537,7 @@ sctp_ctlinput(int cmd, struct sockaddr *sa, void *vip) #else inner_ip->ip_len, #endif - ntohs(icmp->icmp_nextmtu)); + (uint32_t)ntohs(icmp->icmp_nextmtu)); #if defined(__Userspace__) if (stcb && upcall_socket == NULL && !(stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE)) {
Safely initialize manifest object. Using a designated initializer is safer than zeroing the struct. It is also better for debugging because Valgrind should be able to detect access to areas that are not initialized due to alignment.
@@ -366,18 +366,19 @@ manifestNewInternal(void) { FUNCTION_TEST_VOID(); - // Create object - Manifest *this = memNew(sizeof(Manifest)); - this->memContext = memContextCurrent(); - - // Create lists - this->dbList = lstNewP(sizeof(ManifestDb), .comparator = lstComparatorStr); - this->fileList = lstNewP(sizeof(ManifestFi...
lua API for SoundData:append
@@ -9,7 +9,23 @@ static int l_lovrSoundDataGetBlob(lua_State* L) { return 1; } +static int l_lovrSoundDataAppend(lua_State* L) { + SoundData* soundData = luax_checktype(L, 1, SoundData); + Blob* blob = luax_totype(L, 2, Blob); + SoundData* sound = luax_totype(L, 2, SoundData); + lovrAssert(blob || sound, "Invalid blob ...
Update: Shell.c allow for events only consisting of a numeric ID, don't treat them as performing a fixed amount of inference cycles command
@@ -182,7 +182,7 @@ int Shell_ProcessInput(char *line) MOTOR_BABBLING_CHANCE = MOTOR_BABBLING_CHANCE_INITIAL; } else - if(strspn(line, "0123456789")) + if(strspn(line, "0123456789") && strlen(line) == strspn(line, "0123456789")) { unsigned int steps; sscanf(line, "%u", &steps);
improve error codes: translate kdb.kdb.KeyInvalidName to ENOENT
@@ -61,6 +61,8 @@ def _mock_process_context_and_run(process_context, func, args, kwargs): try: return func(*args, **kwargs) + except kdb.kdb.KeyInvalidName: + raise OSError(errno.ENOENT) except kdb.Exception as e: exception_message = str(e).lower()
sixtop: fix typos in error messages
@@ -150,7 +150,7 @@ sixp_input(const uint8_t *buf, uint16_t len, const linkaddr_t *src_addr) } if(sixp_pkt_parse(buf, len, &pkt) < 0) { - LOG_ERR("6P: sixp_input() fails because off a malformed 6P packet\n"); + LOG_ERR("6P: sixp_input() fails because of a malformed 6P packet\n"); return; } @@ -324,7 +324,7 @@ sixp_outp...
hw/mcu/dialog: Provide generic names for CMAC sections We do not want to rely on section names used in Dialog's libraries. Instead, we provide generic "placeholders" for firmware image and CMAC RAM and it's up to CMAC driver to load proper symbols into these sections.
@@ -66,10 +66,7 @@ SECTIONS *(.text) *(.text.*) - __cmac_fw_area_start = .; - KEEP(*(.cmi_fw_area*)) - __cmac_fw_area_end = .; - . = ALIGN(4); + *(.libcmac.rom) KEEP(*(.init)) KEEP(*(.fini)) @@ -195,14 +192,10 @@ SECTIONS __bss_end__ = .; } > RAM - .cmac_ram (NOLOAD) : + .cmac (NOLOAD) : { . = ALIGN(0x400); - __cmac_ra...
[chore] Remove duplicated code
@@ -1036,7 +1036,6 @@ func Query(contractAddress []byte, bs *state.BlockState, cdb ChainAccessor, cont err = dbErr } }() - ce.setCountHook(queryMaxInstLimit) ce.call(queryMaxInstLimit, nil) contexts[ctx.service] = nil
h2olog: remove C-like comments first to parse D files accurately
@@ -108,8 +108,11 @@ probe_decl = r'(?:\bprobe\s+(?:[a-zA-Z0-9_]+)\s*\([^\)]*\)\s*;)' d_decl = r'(?:\bprovider\s*(?P<provider>[a-zA-Z0-9_]+)\s*\{(?P<probes>(?:%s|%s)*)\})' % ( probe_decl, whitespace) +def strip_c_comments(s): + return re.sub('//.*?\n|/\*.*?\*/', '', s, flags=re_flags) + def parse_d(context: dict, path:...
Set and initialiase number of entries in a vtable
@@ -118,6 +118,8 @@ InternalConstructVtablePrelinked64 ( } Vtable->Name = MachoGetSymbolName64 (MachoContext, VtableSymbol); + Vtable->NumEntries = 0; + // // Initialize the VTable by entries. // @@ -145,6 +147,8 @@ InternalConstructVtablePrelinked64 ( Vtable->Entries[Index].Address = 0; Vtable->Entries[Index].Name = N...
Remove dead code CID
@@ -1073,8 +1073,6 @@ char *h2o_configurator_get_cmd_path(const char *cmd) /* obtain root */ if ((root = getenv("H2O_ROOT")) == NULL) { root = H2O_TO_STR(H2O_ROOT); - if (root == NULL) - goto ReturnOrig; } /* build full-path and return */
Fix runas command memory leak
@@ -2501,7 +2501,7 @@ NTSTATUS RunAsCreateProcessThread( if (filePathString = PhSearchFilePath(command->Buffer, L".exe")) PhMoveReference(&commandLine, filePathString); else - commandLine = command; // HACK (dmex) + PhSetReference(&commandLine, command); memset(&startupInfo, 0, sizeof(STARTUPINFOEX)); startupInfo.Start...
Try running tests in separate job
@@ -5,15 +5,27 @@ image: ubuntu:18.04 # Install needed tools before_script: - apt-get update - - apt-get install -y autoconf build-essential libtool yasm wget git libtool-bin libc6-dbg valgrind + - apt-get install -y autoconf build-essential libtool yasm wget git libtool-bin valgrind # Build kvazaar and run tests -buil...
Update pdf doc with better links
@@ -94,7 +94,8 @@ systems. This document provides a specification of SBP framing and the payload structures of the messages currently used with Swift devices. SBP client libraries in a variety of programming languages are available -at~\url{http://docs.swiftnav.com/wiki/SwiftNav_Binary_Protocol}. +at~\url{https://githu...
sgemm_direct_skylakex: fix regression. The `#if defined(SKYLAKEX) || defined (COOPERLAKE)` from that commit was before #include "common.h" so caused the compiled function to be empty, returning garbage results for qualifying sgemm's on those architectures. Closes
-#if defined(SKYLAKEX) || defined (COOPERLAKE) /* the direct sgemm code written by Arjan van der Ven */ #include <immintrin.h> #include "common.h" + +#if defined(SKYLAKEX) || defined (COOPERLAKE) /* * "Direct sgemm" code. This code operates directly on the inputs and outputs * of the sgemm call, avoiding the copies, me...
Parse interop server hostname from requests
@@ -25,6 +25,11 @@ if [ "$ROLE" == "client" ]; then TEST_PARAMS="$CLIENT_PARAMS -o /downloads" TEST_PARAMS="$TEST_PARAMS -X /logs/keys.log" + SERVER_HOST=`echo $REQUESTS | cut -f3 -d'/' | cut -f1 -d':'` + PORT=`echo $REQUESTS | cut -f3 -d'/' | cut -f2 -d':'` + + echo "Hostname: $SERVER_HOST, port: $PORT" + echo "Reques...
Use the two-operand form of DCBT on all PPC970 regardless of OS There seems to be no advantage to the three-operand form used in the earliest GotoBLAS kernels, and it causes compilation problems on other than the previously special-cased platforms as well
@@ -241,7 +241,7 @@ static inline int blas_quickdivide(blasint x, blasint y){ #define HAVE_PREFETCH #endif -#if defined(POWER3) || defined(POWER6) || defined(PPCG4) || defined(CELL) || defined(POWER8) || defined(POWER9) || ( defined(PPC970) && ( defined(OS_DARWIN) || defined(OS_FREEBSD) ) ) +#if defined(POWER3) || defi...
pcre2-dev -> libpcre2-dev
@@ -11,7 +11,7 @@ jobs: run: | sudo apt-get update -y sudo apt-get install -y apache2-dev libcjose-dev libssl-dev check pkg-config - sudo apt-get install -y libjansson-dev libcurl4-openssl-dev libhiredis-dev pcre2-dev + sudo apt-get install -y libjansson-dev libcurl4-openssl-dev libhiredis-dev libpcre2-dev - name: Conf...
arm: argument type for unw_init_local2 I tried to build libunwind for arm target and got a build error. Type for "uc" argument is inconsistent between unw_init_local2 and unw_init_local_common. From Mon Sep 17 00:00:00 2001 From: Guillaume Blanc Date: Tue, 22 Aug 2017 16:46:20 +0200 Subject: [PATCH] arm: Fix unw_init_l...
@@ -59,7 +59,7 @@ unw_init_local (unw_cursor_t *cursor, unw_context_t *uc) } PROTECTED int -unw_init_local2 (unw_cursor_t *cursor, ucontext_t *uc, int flag) +unw_init_local2 (unw_cursor_t *cursor, unw_context_t *uc, int flag) { if (!flag) {