message
stringlengths
6
474
diff
stringlengths
8
5.22k
teib: fix typo in cli Type: fix
@@ -75,8 +75,7 @@ teib_add (vlib_main_t * vm, if (rv) { - error = clib_error_return_code (NULL, rv, 0, - "NRHP error", + error = clib_error_return_code (NULL, rv, 0, "TEIB error", format_unformat_error, line_input); } @@ -141,8 +140,7 @@ teib_del (vlib_main_t * vm, if (rv) { - error = clib_error_return_code (NULL, rv, ...
fix:fix ethereum test case(test_002InitWallet_0003SetChainIdSuccess)
@@ -635,7 +635,7 @@ START_TEST(test_002InitWallet_0003SetChainIdSuccess) /* 2-2. verify the global variables that be affected */ ck_assert(wallet_ptr->network_info.chain_id == wallet.chain_id); - BoatIotSdkDeInit(); + BoatFree(wallet_ptr); } END_TEST
ATTN: Enable flush instruction cache bit in HID register In P9, we have to enable "flush the instruction cache" bit along with "attn instruction support" bit to trigger attention.
#define SPR_HID0_POWER8_HILE PPC_BIT(19) #define SPR_HID0_POWER9_HILE PPC_BIT(4) #define SPR_HID0_POWER8_ENABLE_ATTN PPC_BIT(31) -#define SPR_HID0_POWER9_ENABLE_ATTN PPC_BIT(3) +#define SPR_HID0_POWER9_ENABLE_ATTN (PPC_BIT(2) | PPC_BIT(3)) #define SPR_HID0_POWER9_RADIX PPC_BIT(8) /* PVR bits */
[hardware] Fix RISC-V tests 2, 3 and 4
RVTEST_RV64U RVTEST_CODE_BEGIN -# get a unique core id -la a0, coreid -li a1, 1 -amoadd.w a2, a1, (a0) - -# for now, only run this on core 0 -1:li a3, 1 -bgeu a2, a3, 1b - -1: lw a1, (a0) -bltu a1, a3, 1b - # make sure that sc without a reservation fails. TEST_CASE( 2, a4, 1, \ la a0, foo; \ @@ -46,45 +34,6 @@ TEST_CAS...
examples/README.md: Remove -nostartfiles and -nodefaultlibs follow nuttx change: commit Author: Xiang Xiao Date: Sun May 15 12:32:04 2022 +0800 Move "-nostartfiles -nodefaultlibs" from Make.defs to Toolchian.defs and replace "-nostartfiles -nodefaultlibs" with "-nostdlib"
@@ -317,8 +317,7 @@ options: LDELFFLAGS = -r -e main ``` - If you use GCC to link, you make also need to include `-nostdlib` or - `-nostartfiles` and `-nodefaultlibs`. + If you use GCC to link, you make also need to include `-nostdlib`. 3. This example also requires `genromfs`. `genromfs` can be build as part of the nu...
VERSION bump to version 0.10.17
@@ -28,7 +28,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 10) -set(LIBNETCONF2_MICRO_VERSION 16) +set(LIBNETCONF2_MICRO_VERSION 17) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(L...
print status message on stdout instead of stderr
@@ -129,7 +129,7 @@ void handleGen(struct oidc_account* account, const struct arguments* arguments, char* hint = oidc_sprintf("account configuration '%s'", name); gen_saveAccountConfig(json, account_getName(account), hint, suggested_password, arguments); - printNormal("Everything setup correctly!\n"); + printStdout("Ev...
OcAppleBootCompatLib: Update NVRAM page limit and disable SKL+ hacks
@@ -195,23 +195,26 @@ DevirtualiseMmio ( // STATIC EFI_PHYSICAL_ADDRESS Exceptions[] = { // - // Intel Haswell and below. + // Intel Haswell and below. Bugged. // 0xFED1C000 (SB_RCBA) is a 4 page memory region, containing SPI_BASE at 0x3800 (SPI_BASE_ADDRESS). // 0xFED1C000, +#if 0 // - // Intel Atoms (Braswell, Bay Tr...
fix init ordering When building an application (eg btshell), ble_svc_gap_init() is at stage 301 ble_transport_hs_init() happens at the end after 1000 But ble_svc_gap_init calls (through ble_gatts_add_svcs) ble_hs_lock() that uses the ble_hs_mutex. This mutex is only initialized in ble_hs_init() (via ble_transport_hs_in...
@@ -52,9 +52,7 @@ pkg.deps.BLE_MONITOR_RTT: pkg.init: ble_transport_init: 250 - ble_transport_hs_init: - - $after:ble_transport_init - - $before:ble_transport_ll_init + ble_transport_hs_init: 251 ble_transport_ll_init: - $after:ble_transport_hs_init
apps/graphics/pdcurs34: Fix a bad copy-paste error introduced in last commit.
@@ -282,7 +282,7 @@ static inline void PDC_set_bg(FAR struct pdc_fbstate_s *fbstate, * the final byte than may have fewer than 4 pixels in it). */ - endcol = (endcol + 3) >> 3; + endcol = (endcol + 3) >> 2; #elif PDCURSES_BPP == 4 /* Get the start and end colum in pixels (relative to the start position) */ @@ -306,7 +3...
SOVERSION bump to version 6.0.2
@@ -67,7 +67,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 0) -set(SYSREPO_MICRO_SOVERSION 1) +set(SYSREPO_MICRO_SO...
Make dbgPrint in lexer.c report the correct colNo Fixes
@@ -366,6 +366,12 @@ static void initState(struct LexerState *state) state->expansionOfs = 0; } +static void nextLine(void) +{ + lexerState->lineNo++; + lexerState->colNo = 1; +} + struct LexerState *lexer_OpenFile(char const *path) { dbgPrint("Opening file \"%s\"\n", path); @@ -900,11 +906,12 @@ nextExpansion: /* Now,...
add peerdirs for GO_PROTO_CMD to well known types
@@ -306,13 +306,26 @@ macro ADD_PY_PROTO_OUT(Suf) { GO_PROTOC_GEN_TOOL=vendor/github.com/golang/protobuf/protoc-gen-go GO_PROTOC_GEN_PLUGINS= +GO_PROTOBUF_WELLKNOWN_TYPES=\ + vendor/github.com/golang/protobuf/ptypes \ + vendor/github.com/golang/protobuf/ptypes/any \ + vendor/github.com/golang/protobuf/ptypes/duration \...
Update cook cleaning up directory.
[path] (if (= (os/stat path :mode) :directory) (do - (each subpath (os/dir path) (rm subpath)) + (each subpath (os/dir path) + (rm (string path sep subpath))) (os/rmdir path)) (os/rm path)))
vere: more readable http server status Not touching the proxy message because that seems gone on ipc-redux.
@@ -1267,9 +1267,9 @@ _http_serv_start(u3_http* htp_u) htp_u->rox_u->por_s); } else { - u3l_log("http: live (%s, %s) on %d\n", - (c3y == htp_u->sec) ? "secure" : "insecure", - (c3y == htp_u->lop) ? "loopback" : "public", + u3l_log("http: %s live on %s://localhost:%d\n", + (c3y == htp_u->lop) ? "loopback" : "web interfa...
nimble/controller: Add LP clock sysval to configure BSP Controller package defines new sysval (BLE_LP_CLOCK) which is then used to configure ticks and timers accordingly. X-Original-Commit:
@@ -25,6 +25,11 @@ syscfg.defs: drivers. value: 1 + BLE_LP_CLOCK: + description: > + Used by BSP packages to configure LP clock for controller. + value: 1 + BLE_LL_PRIO: description: 'The priority of the LL task' type: 'task_priority'
[mechanics_io] fix value birth=False for immediately created bodies in importScene
@@ -2060,7 +2060,7 @@ class Hdf5(): translation=translation, orientation=orientation, velocity=velocity, - birth=True) + birth=False) # import nslaws # note: no time of birth for nslaws and joints
Documentation change only: update availability dates.
@@ -47,8 +47,8 @@ The key APIs provided by this repo, and their relationships with each other, are |SARA-R4x series<br />SARA-R500S<br />SARA-R510S<br />SARA-R510M8S| [cell](/cell "cell API")<br />[network](/common/network "network API")<br />[sock](/common/sock "sock API")<br />[location*](/common/location "location A...
tenmul for linop_fmac
@@ -71,16 +71,14 @@ static void fmac_apply(const linop_data_t* _data, complex float* dst, const comp { auto data = CAST_DOWN(fmac_data, _data); - md_clear2(data->N, data->odims, data->ostrs, dst, CFL_SIZE); - md_zfmac2(data->N, data->dims, data->ostrs, dst, data->istrs, src, data->tstrs, multiplace_read(data->tensor, d...
[ctr/lua] [aergo.system] apply balnace at governance when error occurred in contract.pcall
@@ -1091,9 +1091,9 @@ func LuaGovernance(L *LState, service *C.int, gType C.char, arg *C.char) C.int { if stateSet.lastRecoveryEntry != nil { if gType == 'S' { - _ = setRecoveryPoint(aid, stateSet, senderState, nil, amountBig, true) + _ = setRecoveryPoint(aid, stateSet, senderState, scsState, amountBig, true) } else if...
Add term import
@@ -41,6 +41,7 @@ import "imports/import.du"; import "random/import.du"; import "hashlib/import.du"; import "object/import.du"; +import "term/import.du"; // If we got here no runtime errors were thrown, therefore all tests passed. print("All tests passed successfully!");
chat fe: improve groupify copy
@@ -139,7 +139,9 @@ export class SettingsScreen extends Component { <div> <div className={"w-100 fl mt3 "}> <p className="f8 mt3 lh-copy db">Convert Chat</p> - <p className="f9 gray2 db mb4">Convert this chat into a group + associated chat.</p> + <p className="f9 gray2 db mb4"> + Convert this chat into a group with ass...
Fix documentation examples setting RGB LED Update the examples using set_led function and replacing to use set_rgb Fixes
@@ -81,7 +81,7 @@ You can set the colour of an LED in either the RGB colourspace, or HSV (Hue, Sat Set the first LED - `0` - to Purple `255, 0, 255`: ```python -led_strip.set_led(0, 255, 0, 255) +led_strip.set_rgb(0, 255, 0, 255) ``` #### HSV @@ -133,7 +133,7 @@ You can set the colour of an LED in either the RGB colour...
odyssey: remove left-over debug
@@ -53,9 +53,6 @@ od_worker_pool_feed(od_worker_pool_t *pool, machine_msg_t *msg) } pool->round_robin++; - printf(">>>> %d\n", next); - fflush(stdout); - od_worker_t *worker; worker = &pool->pool[next]; machine_channel_write(worker->task_channel, msg);
[Mempool] Bugfix, remove whitelist statistics in public network
@@ -257,14 +257,17 @@ func (mp *MemPool) Receive(context actor.Context) { } func (mp *MemPool) Statistics() *map[string]interface{} { - return &map[string]interface{}{ + ret := map[string]interface{}{ "total": mp.length, "orphan": mp.orphan, "dead": mp.deadtx, - "whitelist": mp.whitelist.GetWhitelist(), - "whitelist_on...
stm32/extint: Use correct EXTI channels on H7 MCUs for RTC events.
#if defined(STM32F0) || defined(STM32L4) #define EXTI_RTC_TIMESTAMP (19) #define EXTI_RTC_WAKEUP (20) +#elif defined(STM32H7) +#define EXTI_RTC_TIMESTAMP (18) +#define EXTI_RTC_WAKEUP (19) #else #define EXTI_RTC_TIMESTAMP (21) #define EXTI_RTC_WAKEUP (22)
Change returned value type to 'signed int' for proper operation
@@ -92,7 +92,7 @@ florida_get_seeds(struct context * ctx, struct mbuf *seeds_buf) { struct sockaddr_in *remote; uint32_t sock; - uint32_t tmpres; + int32_t tmpres; uint8_t buf[BUFSIZ + 1]; log_debug(LOG_VVERB, "Running florida_get_seeds!");
BugID:19808122:fixed socketfd data type compare error bug
@@ -182,7 +182,7 @@ static int ota_download_start(void *pctx) } } else { sockfd = ota_socket_connect(host_addr, port); - if (sockfd < 0) { + if ((intptr_t)sockfd < 0) { ret = OTA_DOWNLOAD_CON_FAIL; return ret; }
docker: alpine release image minimize image size further
@@ -43,6 +43,7 @@ RUN mkdir build \ -DTOOLS="ALL" \ -DENABLE_DEBUG="OFF" \ -DENABLE_LOGGER="OFF" \ + -DCMAKE_BUILD_TYPE="Release" \ -DKDB_DB_SYSTEM='/home/elektra/.config/kdb/system' \ -DKDB_DB_SPEC='/home/elektra/.config/kdb/spec' \ -DKDB_DB_HOME='/home/elektra/.config/kdb/home' \ @@ -51,7 +52,8 @@ RUN mkdir build \ &...
Turn off experimental CXX RSA by default.
# specific language governing permissions and limitations # under the License. -celix_subproject(CXX_REMOTE_SERVICE_ADMIN "Option to enable building the C++17 Remote Service Admin Service bundles" ON) +celix_subproject(CXX_REMOTE_SERVICE_ADMIN "Option to enable building the C++17 Remote Service Admin Service bundles" O...
Improving error handling in before_test.cmd
@@ -57,16 +57,16 @@ IF NOT DEFINED PLATFORM ( ) :: hack to determine latest tag in epanet-example-networks repo -:: TODO: use GitHub api instead set "LATEST_URL=https://github.com/OpenWaterAnalytics/epanet-example-networks/releases/latest" FOR /F delims^=^"^ tokens^=2 %%g IN ('curl --silent %LATEST_URL%') DO ( set "LAT...
Use Kafka version 2.7.0
@@ -13,7 +13,7 @@ RUN mkdir /opt/test-runner/logs/ RUN source scl_source enable rh-python36 && virtualenv /opt/test-runner/ # Originally used 2.1.1 and 2.11, but they're too old now. -ENV KAFKA_VERSION=2.5.0 KAFKA_SCALA_VERSION=2.13 +ENV KAFKA_VERSION=2.7.0 KAFKA_SCALA_VERSION=2.13 ENV KAFKA_RELEASE_ARCHIVE kafka_${KAF...
fixed small bug in weak pass generation
@@ -80,7 +80,7 @@ size_t ca, cn, cs; char pskstring[PSKSTRING_LEN_MAX] = {}; -const char *adjectiv[] = { "ancient", "antique", "aquatic, absurd", +const char *adjectiv[] = { "ancient", "antique", "aquatic", "absurd", "baby", "basic", "big", "bitter", "black", "blue", "bold", "bottled", "brave", "breezy", "bright", "bro...
docs: update description of initial upload on development boards
@@ -55,7 +55,7 @@ Uploading the Application Initial Upload -------------- -If the {IDF_TARGET_NAME} is not yet flashed with a program which enables USB console, we can not use ``idf.py flash`` command with the USB CDC port. There are 3 alternative options to perform the initial upload listed below. +If the {IDF_TARGET_...
dpdk: fix building debs from stable dpdk tarballs
@@ -8,7 +8,7 @@ BASE_VER = $(word 1, $(subst -, ,$(VERSION))) export DPDK_BUILD_DIR=$(CURDIR)/_build export DPDK_INSTALL_DIR=$(CURDIR)/debian/tmp/usr -SRC=_build/dpdk-$(BASE_VER) +SRC=$(wildcard _build/dpdk*$(BASE_VER)) MAKE_ARGS=-C ..
Add default case for old compiler support
@@ -676,6 +676,8 @@ static inline int get_quant_method_levels(quant_method method) case QUANT_160: return 160; case QUANT_192: return 192; case QUANT_256: return 256; + // Unreachable - the enum is fully described + default: return 0; } }
pbio/trajectory: fix duration of patched maneuver This was broken by Because the starting point is shifted to the past to intersect with ongoing maneuver, we must compensate that difference in the duration. That way, the end time is indeed the current time plus the duration.
@@ -66,7 +66,7 @@ static pbio_error_t pbio_trajectory_patch(pbio_trajectory_t *ref, bool time_base // Now we can make the new trajectory with a starting point coincident // with a point on the existing trajectory if (time_based) { - return pbio_trajectory_make_time_based(ref, t0, duration, th0, th0_ext, w0, wt, wmax, a...
[tools] Remove has_key methods to improve compatibility with Scons version
@@ -51,11 +51,11 @@ def TargetMakefile(env): if 'CXXFLAGS' in dir(rtconfig): make.write('CXXFLAGS :=%s' % (rtconfig.CXXFLAGS)) make.write('\n') - if env.has_key('LIBS'): + if ('LIBS' in env): make.write('EXTERN_LIB := ') for tlib in env['LIBS']: make.write('-l%s ' % (tlib)) - if env.has_key('LIBPATH'): + if ('LIBPATH' ...
apps/helloxx : update Makefile This patch updates helloxx application makefile
-include $(TOPDIR)/Make.defs include $(APPDIR)/Make.defs +CXXEXT ?= .cxx # Hello, World! C++ Example +APPNAME = helloxx +FUNCNAME = $(APPNAME)_main +THREADEXEC = TASH_EXECMD_ASYNC + +# Hello, World! C++ Example ASRCS = CSRCS = CXXSRCS = @@ -63,8 +69,12 @@ MAINSRC = helloxx_main.cxx AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS =...
fix def path in test
@@ -15,9 +15,8 @@ if [ "x$DISTRO_FAMILY" == "xCentOS" ];then export DISTRO=centos export BOOTSTRAP_DEF=/opt/ohpc/pub/doc/contrib/singularity-ohpc-2.3pre/examples/${DISTRO}/Singularity else - export DISTRO=sles - export BOOTSTRAP_DEF=/opt/ohpc/pub/doc/contrib/singularity-ohpc/examples/${DISTRO}.def - export BOOTSTRAP_DE...
Add key/button IDs to exported help
@@ -2922,6 +2922,16 @@ static void onExport_help(Console* console, const char* param, const char* name, FOR(const ApiItem*, api, Api) ptr += sprintf(ptr, "\n### %s\n`%s`\n%s\n", api->name, api->def, api->help); + ptr += sprintf(ptr, "\n## Button IDs\n"); + ptr += sprintf(ptr, "```"); + ptr += createButtonsTable(ptr); +...
Make further changes as suggested by markus2330.
@@ -17,7 +17,9 @@ This is a step-by-step guide. Just follow the steps and you are good to go! ### 1. Pick a Docker image and pull it -Pick one of the available Docker images of Elektra. If you do not know the difference, just pick this one --> "build-elektra-debian-stretch". Unfortunately, it will take some time to dow...
Add throwable parameter to Log.w() When an exception occurs, we might want to log a warning instead of an error. PR <https://github.com/Genymobile/scrcpy/pull/2802>
@@ -57,13 +57,20 @@ public final class Ln { } } - public static void w(String message) { + public static void w(String message, Throwable throwable) { if (isEnabled(Level.WARN)) { - Log.w(TAG, message); + Log.w(TAG, message, throwable); System.out.println(PREFIX + "WARN: " + message); + if (throwable != null) { + throw...
SOVERSION bump to version 2.20.15
@@ -66,7 +66,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_ # set version of the library set(LIBYANG_MAJOR_SOVERSION 2) set(LIBYANG_MINOR_SOVERSION 20) -set(LIBYANG_MICRO_SOVERSION 14) +set(LIBYANG_MICRO_SOVERSION 15) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG...
nix: add explicit shutdown to solid-pill derivation
@@ -7,13 +7,13 @@ chmod -R u+rw ./pier $URBIT -d ./pier -cleanup () { +shutdown () { if [ -e ./pier/.vere.lock ] then kill $(< ./pier/.vere.lock) || true; fi } -trap cleanup EXIT +trap shutdown EXIT # update pill strategy to ensure correct staging # @@ -75,6 +75,8 @@ herb ./pier -p hood -d "+hood/unmount %stage" herb ....
Added debug message for travis.
@@ -40,13 +40,15 @@ if [ $? -ne 0 ]; then echo -e "\xe2\x9c\x96"; else echo -e "\xe2\x9c\x93"; fi echo -n "INSTALL OpenCR: " DEPENDENCY_OUTPUT=$(arduino --install-boards OpenCR:OpenCR 2>&1) if [ $? -ne 0 ]; then echo -e "\xe2\x9c\x96"; else echo -e "\xe2\x9c\x93"; fi + # Update OpenCR package manually +echo -n "UPDATE ...
Initialize promotion policy before cleaning policy. If cleaning policy didn't have init() function, '_ocf_mngt_init_instance_load_complete' returned early and promotion policy wasn't initialized at all.
@@ -475,6 +475,13 @@ void _ocf_mngt_init_instance_load_complete(void *priv, int error) OCF_PL_FINISH_RET(context->pipeline, -OCF_ERR_START_CACHE_FAIL); } + result = __init_promotion_policy(cache); + if (result) { + ocf_cache_log(cache, log_err, + "Cannot initialize promotion policy\n"); + OCF_PL_FINISH_RET(context->pip...
lovr.mirror disables blending when drawing headset texture; This is so transparent headset textures (when rendering overlays) don't ghost. Alternatively, clear could be used.
@@ -218,6 +218,8 @@ end function lovr.mirror() if lovr.headset then -- On some systems, headset module will be disabled + local blend, alpha = lovr.graphics.getBlendMode() + lovr.graphics.setBlendMode() local texture = lovr.headset.getMirrorTexture() if texture then -- On some drivers, texture is printed directly to th...
motorcontrol: preserve brake/hold in angle reset This still aborts background maneuvers if active, because they are undefined after resetting the angle. PID status is not preserved, so if a high load was present prior to the reset, motor briefly deviates from target before returning. Fixes
@@ -265,8 +265,6 @@ pbio_error_t pbio_motor_get_encoder_count(pbio_port_t port, int32_t *count) { } pbio_error_t pbio_motor_reset_encoder_count(pbio_port_t port, int32_t reset_count) { - // Set the motor to coast and stop any running maneuvers - pbio_motor_coast(port); // First get the counter value without any offsets...
Update: irc_nar.py: update IRC script to also work for matrix bridge. TODO update to Python3
@@ -31,7 +31,7 @@ import sys import time import itertools -server = "irc.freenode.net" +server = "irc.libera.chat" channel = "#nars" botnick = "nars42" Narsese_Filter=["^","Answer:"] @@ -67,15 +67,14 @@ while True: if "VERSION" in text or "End of message of the day" in text: irc.send("JOIN "+ channel +"\r\n") #join whe...
nshlib: Call BOARDIOC_FINALINIT in nsh_telnetstart if CONFIG_NSH_CONSOLE not define
@@ -259,13 +259,21 @@ int nsh_telnetstart(sa_family_t family) /* Execute the startup script. If standard console is also defined, * then we will not bother with the initscript here (although it is - * safe to call nshinitscript multiple times). + * safe to call nsh_initscript multiple times). */ #if defined(CONFIG_NSH_...
record: clarify the notification use case
- **Scope:** Configuration/Logging - **Level:** Developer goal - **Actors:** Plugin developer -- **Brief:** It should be possible for plugins to be notified when data in KDB changes. +- **Brief:** Some plugins are only executed when something changed in the KDB and as an input receive the keys that changed in their old...
tests: internal: signv4: initialize variable
@@ -86,7 +86,7 @@ static struct request *http_request_create(char *request) char *start; char *end; char *p; - char *br; + char *br = NULL; flb_sds_t tmp; flb_sds_t key; flb_sds_t val;
Bypass controlling commands in touch class to driver.
@@ -77,6 +77,8 @@ static void rt_touch_irq_enable(rt_touch_t touch) { rt_pin_irq_enable(touch->config.irq_pin.pin, RT_TRUE); } +#else + touch->ops->touch_control(touch, RT_TOUCH_CTRL_ENABLE_INT, RT_NULL); #endif } @@ -88,6 +90,8 @@ static void rt_touch_irq_disable(rt_touch_t touch) { rt_pin_irq_enable(touch->config.irq...
HLS: Inlining functions which do fifo.read, fifo.write
@@ -193,7 +193,7 @@ static void snap_4KiB_put(snap_4KiB_t *buf, snap_membus_t line) buf->b_idx++; } -static void read_table1(snap_membus_t *mem, unsigned int max_lines, +static inline void read_table1(snap_membus_t *mem, unsigned int max_lines, t1_fifo_t *fifo1, uint32_t t1_used) { unsigned int i; @@ -220,7 +220,7 @@ s...
[website] Update metric configuration
@@ -160,6 +160,45 @@ metric: # - type: statsd + # Metric file system + # Type: string + # Values: fs + # Default: fs + # Override: $SCOPE_METRIC_FS + # + - type: fs + + # Metric network + # Type: string + # Values: net + # Default: net + # Override: $SCOPE_METRIC_NET + # + - type: net + + # Metric http + # Type: string...
Don't assume that pixbuf_len == number of pixels
@@ -225,12 +225,14 @@ size_t print_color_art(wuffs_base__pixel_buffer* pb) { // ---- const char* allocate(wuffs_base__image_config* ic) { - image_len = wuffs_base__pixel_config__pixbuf_len(&ic->pixcfg); - if (image_len > (SIZE_MAX / sizeof(wuffs_base__color_u32argb))) { + uint32_t width = wuffs_base__pixel_config__widt...
Don't include interact script on actors with collision group set
@@ -1197,6 +1197,7 @@ export const compileActors = (actors, { eventPtrs, movementPtrs, hitPlayerPtrs, const actorFrames = actorFramesPerDir(actor.spriteType, spriteFrames); const initialFrame = actor.spriteType === SPRITE_TYPE_STATIC ? actor.frame % actorFrames : 0; + const collisionGroup = collisionGroupDec(actor.coll...
Prevent buffer overflow.
@@ -238,8 +238,13 @@ static void dcd_ep_handler(uint8_t ep_ix) if (int_status & USBHS_DEVEPTISR_RXOUTI) { xfer_ctl_t *xfer = &xfer_status[0]; - if (count) + if (count && xfer->total_len) { + uint16_t remain = xfer->total_len - xfer->queued_len; + if (count > remain) + { + count = remain; + } uint8_t *ptr = EP_GET_FIFO_...
module integration
#include "task.h" +// modules +#if (MODULE_EVERDRIVE != 0) +#include "ext/everdrive.h" +#endif + +#if (MODULE_FAT16 != 0) +#include "ext/fat16.h" +#endif + +#if (MODULE_MEGAWIFI != 0) +#include "ext/mw/megawifi.h" +#endif + // preserve compatibility with old resources name #define logo_lib sgdk_logo #define font_lib fo...
nrf: Include $(SRC_MOD) in the build. Also, remove the unused $(SRC_LIB).
@@ -244,6 +244,7 @@ endif OBJ += $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o)) OBJ += $(addprefix $(BUILD)/, $(SRC_LIB:.c=.o)) +OBJ += $(addprefix $(BUILD)/, $(SRC_MOD:.c=.o)) OBJ += $(addprefix $(BUILD)/, $(SRC_NRFX:.c=.o)) OBJ += $(addprefix $(BUILD)/, $(SRC_NRFX_HAL:.c=.o)) OBJ += $(addprefix $(BUILD)/, $(DRIVERS_S...
fixed clib and added arguments, function
extern "C" { #endif -int sceClibStrcmp(const char *, const char *); -void *sceClibStrncmp(const char *, const char *, SceSize); -int sceClibStrncasecmp(const char *, const char *, SceSize); -char *sceClibStrncpy(char *, const char *, SceSize); -char *sceClibStrncat(char *, const char *, SceSize); -SceSize sceClibStrnle...
path: removed hardcoding of groups variable
#include "kdbconfig.h" +#endif + static int createModeBits (const char * modes); static int handleNoUserCase (Key * parentKey, const char * validPath, const char * modes, int modeMask); @@ -20,8 +22,6 @@ static int switchUser (Key * key, Key * parentKey, const char * name, const stru static int switchGroup (Key * key, ...
Duplicate pcap tx trace fix
@@ -850,9 +850,6 @@ vnet_interface_output_node_inline (vlib_main_t * vm, vnet_hw_interface_t * hi, int do_tx_offloads) { - vnet_interface_pcap_tx_trace (vm, node, frame, - 0 /* sw_if_index_from_buffer */ ); - /* * The 3-headed "if" is here because we want to err on the side * of not impacting the non-GSO performance - ...
automation doc: Add instruction for enabling inv tab completion
@@ -105,6 +105,19 @@ Added the following directories to PATH: inv --help automation.build 12.0 ``` +### Shell Tab Completion for invoke Command +Since the PyInvoke task name are quite long, it can be convenient to enable shell tab completion. +The `invoke` command is already prepared for this, but you need to do some s...
Extra AHRS logging from external sources.
@@ -27,6 +27,7 @@ var ( cage chan (bool) analysisLogger *ahrs.AHRSLogger ahrsCalibrating bool + logMap map[string]interface{} ) func initI2CSensors() { @@ -301,10 +302,13 @@ func sensorAttitudeSender() { if analysisLogger == nil { analysisFilename := filepath.Join(logDirf, fmt.Sprintf("sensors_%s.csv", time.Now().Forma...
Add more help on installing pkg-config on OSX
@@ -17,9 +17,9 @@ Rugged is a self-contained gem. You can install it by running: $ gem install rugged -You need to have CMake and `pkg-config` installed on your system to be able to build the included version of `libgit2`. On OS X, after installing [Homebrew](http://brew.sh/), you can get CMake with: +You need to have ...
Switch to using acquire_spinlock_int in a few places in kernel
@@ -390,12 +390,10 @@ void make_thread_ready(struct thread *th) assert(th->state != THREAD_RUNNING); assert(th->state != THREAD_DEAD); - old_flags = disable_interrupts(); - acquire_spinlock(&thread_q_lock); + old_flags = acquire_spinlock_int(&thread_q_lock); th->state = THREAD_READY; list_add_tail(&ready_q, th); - rele...
Fix no-err This fixes an assertion failure that can occur in the CMP code in the event of a no-err build. The "improve_location_name" function assumed that the fallback argument was always populated with something. However in a no-err build this is not the case.
@@ -114,8 +114,9 @@ const char *ossl_cmp_log_parse_metadata(const char *buf, */ static const char *improve_location_name(const char *func, const char *fallback) { - if (!ossl_assert(fallback != NULL)) - return NULL; + if (fallback == NULL) + return func == NULL ? UNKNOWN_FUNC : func; + return func == NULL || *func == '...
Reuse previous scene's tile colors if using same background image
@@ -428,7 +428,8 @@ const addScene = (state, action) => { backgroundId, width: background.width, height: background.height, - collisions: [] + collisions: [], + tileColors: [] }, action.defaults || {}, script && { script }, @@ -462,6 +463,7 @@ const editScene = (state, action) => { // the correct size let newState = st...
out_forward: fix double-free in exception (CID 304865)
@@ -950,7 +950,6 @@ static int flush_forward_mode(struct flb_forward *ctx, ret = flb_io_net_write(u_conn, data, bytes, &bytes_sent); if (ret == -1) { flb_plg_error(ctx->ins, "could not write forward entries"); - msgpack_sbuffer_destroy(&mp_sbuf); return FLB_RETRY; } @@ -959,7 +958,6 @@ static int flush_forward_mode(str...
packaging: spec file updates for RHEL9 Update opae.spec.rhel for RHEL9 Beta.
@@ -9,7 +9,7 @@ ExclusiveArch: x86_64 Group: Development/Libraries Vendor: Intel Corporation -Requires: uuid +Requires: libuuid Requires: json-c Requires: python3 Requires: systemd @@ -67,15 +67,8 @@ OPAE headers, tools, sample source, and documentation %setup -q -n %{name}-%{version}-%{opae_release} %build -%cmake -DO...
Remove legacy commandline
@@ -1371,7 +1371,7 @@ BOOLEAN NTAPI PhpCommandLineOptionCallback( PH_STRINGREF xString; PH_STRINGREF yString; - if (Value && PhSplitStringRefAtChar(&Value->sr, ',', &xString, &yString)) + if (Value && PhSplitStringRefAtChar(&Value->sr, L',', &xString, &yString)) { LONG64 x; LONG64 y; @@ -1505,11 +1505,6 @@ VOID PhpProc...
Don't assume cmake is in the PATH
@@ -575,7 +575,7 @@ ENDIF () IF (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/misc/h2get/CMakeLists.txt) ExternalProject_Add(h2get - CONFIGURE_COMMAND cmake -DH2GET_SSL_ROOT_DIR=${H2GET_SSL_ROOT_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/misc/h2get + CONFIGURE_COMMAND ${CMAKE_COMMAND} -DH2GET_SSL_ROOT_DIR=${H2GET_SSL_ROOT_DIR} ${CMAKE_CUR...
we do not need to call quicly_sendstate_is_open
@@ -1634,13 +1634,9 @@ static int scheduler_do_send(quicly_stream_scheduler_t *sched, quicly_conn_t *qc goto Exit; ++stream->scheduler.call_cnt; - if (!quicly_sendstate_is_open(&stream->quic->sendstate)) { - if (stream->quic->sendstate.size_inflight == stream->quic->sendstate.final_size) { - if (h2o_timeval_is_null(&st...
Coding: Restructure text about Prettier
@@ -374,8 +374,9 @@ Most notably use: - Please use [**title-case**](https://en.wiktionary.org/wiki/title_case) for headings in the general documentation. - For [man pages](help/) please use **only capital letters for subheadings** and only **small letters for the main header**. We use this header style to match the loo...
vlib: properly configure main thread's core id Prior to this patch, the main thread's core id was always reported as 0. This patch makes a call to vlib_get_thread_core_socket() on the main thread so that its core id is set properly. Type: fix Fixes:
@@ -283,6 +283,8 @@ vlib_thread_init (vlib_main_t * vm) w->thread_id = pthread_self (); tm->n_vlib_mains = 1; + vlib_get_thread_core_numa (w, w->cpu_id); + if (tm->sched_policy != ~0) { struct sched_param sched_param;
[overlay] Make text input grab keyboard focus
@@ -108,6 +108,7 @@ void Overlay::DrawImgui() } ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x); + ImGui::SetKeyboardFocusHere(); const auto execute = ImGui::InputText("", command, std::size(command), ImGuiInputTextFlags_EnterReturnsTrue); ImGui::SetItemDefaultFocus(); if (execute) @@ -118,8 +119,6 @@ void Ov...
net/lwip: fix the coding error This patch prevent approaching lladdr opt pointer after it became null pointer
@@ -222,6 +222,8 @@ void nd6_input(struct pbuf *p, struct netif *inp) while (p->len >= offset + 8) { lladdr_opt = (struct lladdr_option *)((u8_t *) p->payload + offset); + offset += (ND6H_LLADDR_OPT_LEN(lladdr_opt) << 3); + if (ND6H_LLADDR_OPT_LEN(lladdr_opt) == 0) { pbuf_free(p); ND6_STATS_INC(nd6.lenerr); @@ -234,8 +...
cram: fix failmessages line numbers These became out of sync with the recent libgit2 crashes.
@@ -352,7 +352,7 @@ Testing all assert messages [----] failmessages.c:65: Assertion Failed [----] eq(str, "", "foo"): [----] diff: [-""-]{+"foo"+} - [----] failmessages.c:68: Assertion Failed + [----] failmessages.c:66: Assertion Failed [----] eq(str, "reallyreallylongstringindeedmygoodsirormadam", "yetanotherreallyrea...
test: runtime: filter_nest: add lifted testcase filter_nest(#1434) To check if flter_nest drops event if it is not mached.
@@ -12,10 +12,12 @@ int num_output = 0; /* Test functions */ void flb_test_filter_nest_single(void); void flb_test_filter_nest_multi_nest(void); +void flb_test_filter_nest_multi_lift(void); /* Test list */ TEST_LIST = { {"single", flb_test_filter_nest_single }, {"multiple events are not dropped(nest)", flb_test_filter_...
modhubs: add NXTBrick class
@@ -173,13 +173,46 @@ STATIC const mp_obj_type_t hubs_CPlusHub_type = { #endif // PBDRV_CONFIG_HUB_CPLUSHUB +#ifdef PBDRV_CONFIG_HUB_NXTBRICK + +// Class structure for NXTBrick +typedef struct _hubs_NXTBrick_obj_t { + mp_obj_base_t base; +} hubs_NXTBrick_obj_t; + +STATIC void hubs_NXTBrick_print(const mp_print_t *print...
merge dump variable into errorReport
@@ -773,7 +773,6 @@ end // https://github.com/pkulchenko/MobDebug/blob/master/src/mobdebug.lua#L290 // Dump only 3 stacks, or it will return null (I don't know why) string dumpstackfunc = @" -local printerror=printerror dumpstack=function() function vars(f) local dump = """" @@ -816,7 +815,7 @@ dumpstack=function() dum...
tls: removed repeated SSL_shutdown call
@@ -387,7 +387,6 @@ static int tls_session_destroy(void *session) if (flb_socket_error(ptr->fd) == 0) { SSL_shutdown(ptr->ssl); - SSL_shutdown(ptr->ssl); } SSL_free(ptr->ssl); flb_free(ptr);
Refactor BSP traversal to use C++ vectors.
*/ #include "bsp.hpp" +#include <vector> + TCODBsp::TCODBsp(TCODBsp* father, bool left) { if (father->horizontal) { x = father->x; @@ -70,32 +72,32 @@ bool TCODBsp::traversePostOrder(ITCODBspCallback* listener, void* userData) { } bool TCODBsp::traverseLevelOrder(ITCODBspCallback* listener, void* userData) { - TCODList...
Remove secure sockets from wifi dependencies on mediatek
@@ -274,11 +274,10 @@ target_include_directories( ) -# WiFi on MTK requires Secure Sockets +# WiFi target_link_libraries( AFR::wifi::mcu_port INTERFACE - AFR::secure_sockets::mcu_port 3rdparty::lwip )
board/anahera/led.c: Format with clang-format BRANCH=none TEST=none
#define LED_ON_TIME_MS (1000 * MSEC) #define LED_ON_TICKS (LED_ON_TIME_MS / LED_TICK_INTERVAL_MS) -const enum ec_led_id supported_led_ids[] = { - EC_LED_ID_LEFT_LED, - EC_LED_ID_RIGHT_LED -}; +const enum ec_led_id supported_led_ids[] = { EC_LED_ID_LEFT_LED, + EC_LED_ID_RIGHT_LED }; const int supported_led_ids_count = A...
fs/lustre-client: call out rhel8.5 kernel specifically
@@ -22,9 +22,9 @@ BuildRequires: kernel-source BuildRequires: kernel-default-devel %endif %if 0%{?rhel} -BuildRequires: kernel -BuildRequires: kernel-devel -BuildRequires: kernel-abi-whitelists +BuildRequires: kernel-4.18.0-348.23.1.el8_5 +BuildRequires: kernel-devel-4.18.0-348.23.1.el8_5 +BuildRequires: kernel-abi-whi...
Badger2040: Launcher tweaks
@@ -4,13 +4,12 @@ import time import math import machine import badger2040 +from badger2040 import WIDTH import launchericons MAX_BATTERY_VOLTAGE = 4.0 MIN_BATTERY_VOLTAGE = 3.2 -WIDTH = badger2040.WIDTH -HEIGHT = badger2040.HEIGHT page = 0 font_size = 1 @@ -51,7 +50,6 @@ vref_en.value(0) display = badger2040.Badger204...
Fix used-before-set in vl_api_bridge_flags_t_handler The aarch64 cross-compiler complains about this when building an optimized image. So we fix it...
@@ -558,6 +558,7 @@ vl_api_bridge_flags_t_handler (vl_api_bridge_flags_t * mp) vlib_main_t *vm = vlib_get_main (); bd_main_t *bdm = &bd_main; vl_api_bridge_flags_reply_t *rmp; + u32 bitmap = 0; int rv = 0; bd_flags_t flags = bd_flags_decode (mp->flags); @@ -575,7 +576,7 @@ vl_api_bridge_flags_t_handler (vl_api_bridge_f...
improved help (autoxex)
@@ -2383,8 +2383,8 @@ printf("%s %s (C) %s ZeroBeat\n" "-L <file> : output wep encrypted data packets pcap file (for use with a wep cracker)\n" "-m <file> : output extended eapol file (iSCSI CHAP authentication, MD5(CHAP): use hashcat -m 4800)\n" "-n <file> : output extended eapol file (PPP-CHAP and NetNTLMv1 authentic...
osx: trying to fix 2
@@ -34,10 +34,13 @@ macx { ../../curl/lib\ ../../curl/lib/vauth\ ../../curl/lib/vtls + SOURCES += ../../curl/lib/http_ntlm.c\ ../../curl/lib/vauth/ntlm.c\ ../../curl/lib/smb.c\ -../../curl/lib/vtls/openssl.c +../../curl/lib/vtls/openssl.c\ +../../curl/lib/curl_ntlm_core.c\ +../../curl/lib/curl_endian.c #../../curl/lib/...
ghost: disable ADC_CHANNELS_RUNTIME_CONFIG ghost has no need for reconfiguring the ADC channels at runtime. BRANCH=none TEST=make passes
#define CONFIG_CHARGER_BQ25710_SENSE_RESISTOR_AC 10 #define CONFIG_CHARGER_BQ25710_PSYS_SENSING -/* - * Older boards have a different ADC assignment. - */ - -#define CONFIG_ADC_CHANNELS_RUNTIME_CONFIG - #ifndef __ASSEMBLER__ #include "gpio_signal.h" /* needed by registers.h */
docs: Update Docker image in tests tutorial
@@ -73,7 +73,7 @@ docker pull hub-public.libelektra.org/<image_name>:<tag_name> Example: ```shell -docker pull hub-public.libelektra.org/build-elektra-debian-stretch:201905-9dfe329fec01a6e40972ec4cc71874210f69933ab5f9e750a1c586fa011768ab +docker pull hub-public.libelektra.org/build-elektra-debian-bullseye:202212-96dfa4...
in_netif: use new input chunk registration calls
@@ -213,6 +213,8 @@ static int in_netif_collect_linux(struct flb_input_instance *i_ins, int key_len; int i; int entry_len = ctx->entry_len; + msgpack_packer mp_pck; + msgpack_sbuffer mp_sbuf; fp = fopen("/proc/net/dev", "r"); if (fp == NULL) { @@ -223,33 +225,42 @@ static int in_netif_collect_linux(struct flb_input_ins...
remove debug print on fd close
@@ -557,7 +557,6 @@ int close(int fd) if (f == INVALID_ADDRESS) return -EBADF; deallocate_fd(current->p, fd, f); - rprintf("dealloced fd %d\n", fd); if (f->close) return apply(f->close); msg_err("no close handler for fd %d\n", fd);
naive: use 10 gwei for fallback-gas-price
take-maybe-response:strandio =* fallback ~& %fallback-gas-price - (pure:m 40.000.000.000) ::TODO maybe even lower, considering we increment? + (pure:m 10.000.000.000) ?. ?& ?=([~ %finished *] rep) ?=(^ full-file.u.rep) ==
ChangeCipherSpec is not allowed in TLSv1.3
@@ -1223,7 +1223,8 @@ int ssl3_read_bytes(SSL *s, int type, int *recvd_type, unsigned char *buf, if (type == SSL3_RECORD_get_type(rr) || (SSL3_RECORD_get_type(rr) == SSL3_RT_CHANGE_CIPHER_SPEC - && type == SSL3_RT_HANDSHAKE && recvd_type != NULL)) { + && type == SSL3_RT_HANDSHAKE && recvd_type != NULL + && !SSL_IS_TLS1...
BugID:21264988: Update OTA app version
@@ -216,7 +216,7 @@ RM := "$(COMMON_TOOLS_PATH)rm$(EXECUTABLE_SUFFIX)" -f CP := "$(COMMON_TOOLS_PATH)cp$(EXECUTABLE_SUFFIX)" -f MAKE := "$(COMMON_TOOLS_PATH)make$(EXECUTABLE_SUFFIX)" BIN2C := "$(COMMON_TOOLS_PATH)bin2c$(EXECUTABLE_SUFFIX)" -CURRENT_TIME = $(shell $(DATE) +%Y%m%d.%H%M) +CURRENT_TIME = $(shell $(DATE) +%...
fixed stack smashing cased by wrong block.lenght
@@ -5161,7 +5161,7 @@ process80211packet(tv_sec, tv_usec, caplen, packet_ptr); return; } /*===========================================================================*/ -bool pcapngoptionwalk(int fd, uint32_t tl) +bool pcapngoptionwalk(int fd, int tl) { int resseek; uint16_t res; @@ -5179,6 +5179,7 @@ char *gpsd_alt = ...