message
stringlengths
6
474
diff
stringlengths
8
5.22k
Fix faulty assert
@@ -342,7 +342,7 @@ static int ipdnametoaddr(uint8_t* dname, size_t dnamelen, ia[i] = (uint8_t)chunk; i--; } else { - log_assert(i < 15 && i >= 1); + log_assert(i < 16 && i >= 1); /* ia in network byte order */ ia[i-1] = (uint8_t)(chunk >> 8); ia[i] = (uint8_t)(chunk & 0x00FF);
Give a better error message about incomparable types.
@@ -393,7 +393,7 @@ compare(Flattenctx *s, Node *n, int fields) } else if (fields) { r = comparecomplex(s, n, exprop(n)); } else { - fatal(n, "unsupported comparison on values"); + fatal(n, "unsupported comparison on type %s", tystr(ty)); } r->expr.type = mktype(n->loc, Tybool); return r;
hw/mcu/dialog: Fix FPU state store/restore
* under the License. */ +#include "syscfg/syscfg.h" + .syntax unified .arch armv7-m @@ -40,8 +42,10 @@ da1469x_m33_sleep_state: .space 40 /* IPR[0..39] */ .saved_scb: .space 28 /* SCR, CCR, SHPR[0..11], CPACR */ +#if MYNEWT_VAL(HARDFLOAT) .saved_fpu: .space 8 /* FPCCR, FPDSCR */ +#endif .size da1469x_m33_sleep_state, ....
Fix incorrect value of `ZydisDecodedInstruction.raw.prefixes[n].type` (again) Fixed another edge case where the prefix type was `ZYDIS_PREFIX_TYPE_IGNORED` instead of `ZYDIS_PREFIX_TYPE_EFFECTIVE` see
@@ -4628,6 +4628,12 @@ static ZyanStatus ZydisDecodeInstruction(ZydisDecoderContext* context, } if (context->prefixes.mandatory_candidate == 0x66) { + if (context->prefixes.offset_osz_override == + context->prefixes.offset_mandatory) + { + instruction->raw.prefixes[context->prefixes.offset_mandatory].type = + ZYDIS_PRE...
examples/coap-server : trivial patch on handle signal function This commit is trivial patch on handle signal function - handle_sigint function name can be used by other applications - it can causes linking error after compiling so, fix it to static
@@ -61,7 +61,7 @@ static coap_async_state_t *async = NULL; #endif /* WITHOUT_ASYNC */ /* SIGINT handler: set quit to 1 for graceful termination */ -void handle_sigint(int signum) +static void handle_sigint(int signum) { quit = 1; }
Fix `t/50mruby-redis.t` timeout case.
@@ -373,6 +373,7 @@ EOT }; subtest 'connect timeout' => sub { + my $blackhole = t::Util::find_blackhole_ip(); my $spawner = sub { my $conf = <<"EOT"; num-threads: 1 @@ -383,7 +384,7 @@ hosts: mruby.handler: | proc {|env| # if query string is empty, wait forever - redis = H2O::Redis.new(:host => '192.0.2.0', :port => 63...
Clarify dashes are required for openssl list command Fixes CLA: trivial
@@ -13,13 +13,13 @@ I<command> B<openssl> B<list> -B<standard-commands> | -B<digest-commands> | -B<cipher-commands> | -B<cipher-algorithms> | -B<digest-algorithms> | -B<mac-algorithms> | -B<public-key-algorithms> +B<-standard-commands> | +B<-digest-commands> | +B<-cipher-commands> | +B<-cipher-algorithms> | +B<-digest-...
netkvm: improve guess for VF miniport version Use macro that only bumps the miniport version. Any feature from higher protocol bumps the version.
#include "ParaNdis_Protocol.tmh" #endif +#define GUESS_VERSION(a, b) (a) = max((a), (b)) + static PVOID ParaNdis_ReferenceBinding(PARANDIS_ADAPTER *pContext) { return pContext->m_StateMachine.ReferenceSriovBinding(); @@ -1104,7 +1106,7 @@ void CProtocolBinding::QueryCapabilities(PNDIS_BIND_PARAMETERS BindParameters) hd...
HLS intersect: Remove mmio write and attach. Attach is done in execute function during dnut_kernel_sync_execute_job().
@@ -209,19 +209,11 @@ static void dump_table(value_t* table, uint32_t num) static int run_one_step(struct dnut_kernel *kernel, struct dnut_job *cjob, unsigned long timeout, int action_irq, uint64_t step) { - int rc; struct timeval etime, stime; + gettimeofday(&stime, NULL); - if (action_irq) { - dnut_kernel_mmio_write3...
fix(lv_obj_scroll.h) typos
@@ -40,9 +40,9 @@ typedef uint8_t lv_scrollbar_mode_t; /** Scroll span align options. Tells where to align the snappable children when scroll stops.*/ enum { LV_SCROLL_SNAP_NONE, /**< Do not align, leave where it is*/ - LV_SCROLL_SNAP_START, /**< Align to to the left/top*/ - LV_SCROLL_SNAP_END, /**< Align to to the rig...
get_disto: fix reference file read previously this was reading the first file a second time, since: ReadImage(): restore size reporting
@@ -278,7 +278,7 @@ int main(int argc, const char *argv[]) { goto End; } size1 = ReadPicture(name1, &pic1, 1); - size2 = ReadPicture(name1, &pic2, 1); + size2 = ReadPicture(name2, &pic2, 1); if (size1 == 0 || size2 == 0) goto End; if (!keep_alpha) {
fix scripts/get.sh
@@ -209,7 +209,7 @@ else fi write_profile() { - grep -sq ".xmake/profile" $1 || echo "[[ -s \"\$HOME/.xmake/profile\" ]] && source \"\$HOME/.xmake/profile\" # load xmake profile" >> $1 + grep -sq ".xmake/profile" $1 || echo -e "\n[[ -s \"\$HOME/.xmake/profile\" ]] && source \"\$HOME/.xmake/profile\" # load xmake profil...
autotest: saving erroneous values in psd check for debugging
@@ -193,6 +193,9 @@ int liquid_autotest_validate_spectrum(float * _psd, unsigned int _nfft, autotest_psd_s * _regions, unsigned int _num_regions, const char * _debug_filename) { unsigned int i, j; + int fail[_nfft]; + for (j=0; j<_nfft; j++) + fail[j] = 0; for (i=0; i<_num_regions; i++) { autotest_psd_s r = _regions[i]...
cannot use git log to get REPO_ID when building from release source
@@ -51,7 +51,14 @@ else TARGETS_TO_BUILD="AMDGPU;${AOMP_NVPTX_TARGET}X86" fi fi -MYCMAKEOPTS="-DLLVM_ENABLE_PROJECTS=clang;lld -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$INSTALL_PROJECT -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_TARGETS_TO_BUILD=$TARGETS_TO_BUILD $COMPILERS -DLLVM_VERSION_SUFFIX=_AOMP_Version_$AOMP...
Fixed negative patterns combined with address rules.
@@ -192,6 +192,7 @@ static nxt_http_route_rule_t *nxt_http_route_rule_create(nxt_task_t *task, nxt_mp_t *mp, nxt_conf_value_t *cv, nxt_bool_t case_sensitive, nxt_http_route_pattern_case_t pattern_case); static int nxt_http_pattern_compare(const void *one, const void *two); +static int nxt_http_addr_pattern_compare(cons...
SOVERSION bump to version 1.3.22
@@ -48,7 +48,7 @@ set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION # with backward compatible change and micro version is connected with any internal change of the library. set(LIBNETCONF2_MAJOR_SOVERSION 1) set(LIBNETCONF2_MINOR_SOVERSION 3) -set(LIBNETCONF2_MICRO_SOVERSION 21) +set(LIB...
common/uptime.c: Format with clang-format BRANCH=none TEST=none
@@ -32,14 +32,12 @@ host_command_get_uptime_info(struct host_cmd_handler_args *args) r->ec_reset_flags = system_get_reset_flags(); memset(r->recent_ap_reset, 0, sizeof(r->recent_ap_reset)); - rc = get_ap_reset_stats(recent_ap_reset, - ARRAY_SIZE(r->recent_ap_reset), + rc = get_ap_reset_stats(recent_ap_reset, ARRAY_SIZE...
gphdfs Java 1.6 -> 1.7 requirement [ci skip]
<body> <p>Install and configure Hadoop for use with <codeph>gphdfs</codeph> as follows:<ol id="ol_whb_fxz_h4"> - <li id="du188617">Install Java 1.6 or later on <b>all</b> Greenplum Database hosts: + <li id="du188617">Install Java 1.7 or later on <b>all</b> Greenplum Database hosts: master, segment, and standby master.<...
http-api: If scry fails, return reject response
@@ -545,7 +545,12 @@ export class Urbit { const response = await fetch( `${this.url}/~/scry/${app}${path}.json`, this.fetchOptions - ); + ) + + if (!response.ok) { + return Promise.reject(response); + } + return await response.json(); }
mm/kmm_realloc.c : Fix to get kheap before free To free the kheap, we should get the kheap first.
@@ -98,12 +98,13 @@ void *kmm_realloc_at(int heap_index, void *oldmem, size_t size) return NULL; } + kheap = kmm_get_heap(); + if (size == 0) { mm_free(&kheap[heap_index], oldmem); return NULL; } - kheap = kmm_get_heap(); #ifdef CONFIG_DEBUG_MM_HEAPINFO ret = mm_realloc(&kheap[heap_index], oldmem, size, caller_retaddr)...
Rmove set power threshold2 in PR flow Changes: -OPAE PR flow sets power threshold2 value,BBS ignores Threshold2 value OPAE doen't set threshold2 in PR flow
@@ -252,25 +252,6 @@ fpga_result set_fpga_pwr_threshold(fpga_handle handle, return result; } - // FIXME Fix threshold2 calculation. - // FPGA threshold2 = 110% (FPGA threshold1) - fpga_power = fpga_power + FPGA_THRESHOLD2(fpga_power); - if (fpga_power > FPGA_MAX_POWER) { - FPGA_ERR("Invalid power threshold 2"); - resul...
elrs_phase: reset lpf
@@ -139,6 +139,9 @@ void elrs_phase_reset() { pl_state.offset = 0; pl_state.offset_dx = 0; + + elrs_lpf_init((elrs_lpf_t *)&pl_state.offset_lpf, 2); + elrs_lpf_init((elrs_lpf_t *)&pl_state.offset_dx_lpf, 4); } void TIM3_IRQHandler() {
pkg/gadgets/trace/network/types: Remove unused functions
package types import ( - "encoding/json" "fmt" "github.com/inspektor-gadget/inspektor-gadget/pkg/columns" @@ -87,34 +86,3 @@ func GetColumns() *columns.Columns[Event] { func (e Event) GetBaseEvent() eventtypes.Event { return e.Event } - -func Unique(edges []Event) []Event { - keys := make(map[string]bool) - list := []E...
[stm32l475-pandora] select AHT10_USING_SENSOR_DEVICE
@@ -103,8 +103,6 @@ menu "Onboard Peripheral Drivers" default y endif - - menuconfig BSP_USING_FS bool "Enable File System" select RT_USING_DFS @@ -145,7 +143,7 @@ menu "Onboard Peripheral Drivers" select BSP_USING_I2C select BSP_USING_I2C4 select PKG_USING_AHT10 - select PKG_USING_AHT10_LATEST_VERSION + select AHT10_U...
fixed compilerwarning on older gcc
@@ -67,7 +67,6 @@ void cowprocess(FILE *fhcowin, FILE *fhpwout, FILE *fhpmkpwout, FILE *fhpmkout, int rd, c; uint8_t pwlen = 0; - cow_head_t cowh; uint8_t recsize; @@ -77,7 +76,7 @@ char passwort[66]; rd = fread(&cowh, COWHEAD_SIZE, 1, fhcowin); if(rd != 1) { - fprintf(stderr, "error reading cowpatty file header %ld %d...
Update client_upcall.c Strlen will just look for a null character for its calculations. so this code doesn't make sense. but it is dangerous because if the code is changed as a result of the development of the project, then the function may go beyond the allocated memory. I suggest deleting this call.
@@ -308,7 +308,6 @@ main(int argc, char *argv[]) while (!done && !input_done) { if (inputAvailable()) { if (fgets(buffer, sizeof(buffer), stdin) != NULL) { - buffer[strlen(buffer)] = '\0'; usrsctp_sendv(sock, buffer, strlen(buffer), NULL, 0, NULL, 0, SCTP_SENDV_NOINFO, 0); } else { if (usrsctp_shutdown(sock, SHUT_WR) <...
Fix option related issues in pg_verifybackup. This commit does: get rid of the garbage code for unused --print-parse-wal option. add help message for --quiet option into usage(). fix typo of option name in help message. Author: Fujii Masao Discussion:
@@ -162,7 +162,6 @@ main(int argc, char **argv) {"ignore", required_argument, NULL, 'i'}, {"manifest-path", required_argument, NULL, 'm'}, {"no-parse-wal", no_argument, NULL, 'n'}, - {"print-parse-wal", no_argument, NULL, 'p'}, {"quiet", no_argument, NULL, 'q'}, {"skip-checksums", no_argument, NULL, 's'}, {"wal-directo...
modnxtdevices/LightSensor: Compensate ambient This adds a convenience option to compensate the Light Sensor value for presence of ambient light.
@@ -273,6 +273,7 @@ STATIC const mp_obj_type_t nxtdevices_SoundSensor_type = { // pybricks.nxtdevices.LightSensor class object typedef struct _nxtdevices_LightSensor_obj_t { mp_obj_base_t base; + bool compensate_ambient; #ifdef PBDRV_CONFIG_HUB_EV3BRICK pbio_ev3iodev_t *iodev; #else @@ -283,13 +284,17 @@ typedef struct...
README: fix a couple of outdated links
@@ -97,8 +97,8 @@ make sense since they will always be green, but here are the links: * [Semaphore CI](https://nemequ.semaphoreci.com/projects/simde) * [Circle CI](https://app.circleci.com/pipelines/github/simd-everywhere/simde) * [AppVeyor](https://ci.appveyor.com/project/nemequ/simde) -* [Azure Pipelines](https://dev...
Fix service delayed start typo
@@ -234,7 +234,7 @@ static VOID PhpRefreshControls( } else { - EnableWindow(GetDlgItem(hwndDlg, IDC_DELAYEDSTART), TRUE); + EnableWindow(GetDlgItem(hwndDlg, IDC_USERACCOUNT), TRUE); EnableWindow(GetDlgItem(hwndDlg, IDC_PASSWORD), TRUE); EnableWindow(GetDlgItem(hwndDlg, IDC_PASSWORDCHECK), TRUE); EnableWindow(GetDlgItem...
Badger2040: Sleep after writing the book, to fix possible write delay when on battery
import badger2040 +import time import gc import badger_os @@ -13,7 +14,10 @@ except OSError: # If the specified file doesn't exist, # pre-populate with Wind In The Willows import witw - open(text_file, "wb").write(witw.data()) + with open(text_file, "wb") as f: + f.write(witw.data()) + f.flush() + time.sleep(0.1) del w...
Enums now write their generics to introspect data.
@@ -539,6 +539,19 @@ static void write_generics(lily_parse_state *parser, uint16_t where) add_data_string(parser, lily_mb_raw(msgbuf)); } +static uint16_t store_enum_docblock(lily_parse_state *parser) +{ + if ((parser->flags & PARSER_HAS_DOCBLOCK) == 0) { + lily_u16_write_1(parser->data_stack, 0); + add_data_string(par...
imgtool: Discard public RSA if set for signing If imgtool is used for signing with encryption it will disallow using public RSA key for signing.
@@ -156,9 +156,9 @@ def sign(key, align, version, header_size, pad_header, slot_size, pad, enckey = load_key(encrypt) if encrypt else None if enckey: if not isinstance(enckey, (keys.RSA2048, keys.RSA2048Public)): - raise Exception("Encryption only available with RSA") - if key and not isinstance(key, (keys.RSA2048, key...
[run_rocm_test] - Add sollve45 and sollve50 to blocking list for epsdb.
EPSDB_LIST=${EPSDB_LIST:-"examples smoke smokefails omp5 openmpapps nekbone sollve babelstream"} SUITE_LIST=${SUITE_LIST:-"examples smoke smokefails omp5 openmpapps nekbone sollve"} -blockinglist="examples_fortran examples_openmp smoke nekbone" +blockinglist="examples_fortran examples_openmp smoke nekbone sollve45 soll...
parse the correct frame id when encountering an unknown frame when logging
@@ -1322,7 +1322,7 @@ void picoquic_log_frames(FILE* F, uint64_t cnx_id64, uint8_t* bytes, size_t leng default: { /* Not implemented yet! */ uint64_t frame_id64; - if (picoquic_varint_decode(bytes, length - byte_index, &frame_id64) > 0) { + if (picoquic_varint_decode(bytes + byte_index, length - byte_index, &frame_id64...
Fix minimal build.
@@ -54,11 +54,13 @@ typedef struct { int is_error; } JanetTimeout; +#ifdef JANET_THREADS typedef struct { JanetMailbox *original; JanetMailbox *newbox; uint64_t flags; } JanetMailboxPair; +#endif struct JanetVM { /* Top level dynamic bindings */ @@ -121,7 +123,7 @@ struct JanetVM { JanetTraversalNode *traversal_base; /...
[core] adjust when TCP_CORK used on TLS connection
@@ -287,7 +287,9 @@ connection_write_chunkqueue (connection * const con, chunkqueue * const restrict /* Linux: put a cork into socket as we want to combine write() calls * but only if we really have multiple chunks including non-MEM_CHUNK * (or if multiple chunks and TLS), and only if TCP socket */ - if (NULL != c || (...
improves encryption password handling
@@ -55,6 +55,8 @@ static struct argp argp = {options, parse_opt, args_doc, doc}; static struct oidc_provider* provider = NULL; +char* encryptionPassword = NULL; + int main(int argc, char** argv) { openlog("oidc-gen", LOG_CONS|LOG_PID, LOG_AUTHPRIV); // setlogmask(LOG_UPTO(LOG_DEBUG)); @@ -104,10 +106,42 @@ int main(int...
tests: fixed wrongly replaced egrep In this case, the usage of egrep was correct as it's the type of regex that the `find` command is using
@@ -14,7 +14,7 @@ command -v checkbashisms > /dev/null 2>&1 || { cd "@CMAKE_SOURCE_DIR@" || exit # Use (non-emacs) extended regex for GNU find or BSD find -find -version > /dev/null 2>&1 > /dev/null && FIND='find scripts -regextype grep -E' || FIND='find -E scripts' +find -version > /dev/null 2>&1 > /dev/null && FIND='...
Put socket destroyed signal handling to the right place to prevent double exec
@@ -8056,6 +8056,9 @@ void DeRestPluginPrivate::pushClientForClose(QTcpSocket *sock, int closeTimeout, client.sock = sock; client.closeTimeout = closeTimeout; + connect(sock, SIGNAL(destroyed()), + this, SLOT(clientSocketDestroyed())); + openClients.push_back(client); } @@ -12469,9 +12472,6 @@ int DeRestPlugin::handleH...
misc: updating obs packages for v1.3.8
@@ -18,7 +18,7 @@ runtimes = ["singularity","ocr","charliecloud"] rms = ["slurm","pbspro","pmix"] serial-libs = ["R","openblas","plasma"] parallel-libs = ["boost","hypre","mumps","opencoarrays","petsc","slepc","superlu_dist"] -perf-tools = ["dimemas","extrae","likwid","scorep","tau"] +perf-tools = ["dimemas","extrae","...
some new headers 4 mapkit
@@ -1245,8 +1245,12 @@ mach/vm_statistics.h sys/kauth.h sys/proc_info.h sys/statfs.h +Cocoa/Cocoa.h +CommonCrypto/CommonCrypto.h CoreFoundation/CoreFoundation.h CoreFoundation/CFRunLoop.h +CoreGraphics/CoreGraphics.h +CoreText/CoreText.h IOKit/ps/IOPSKeys.h IOKit/ps/IOPowerSources.h IOKit/ps/IOPowerSources.h @@ -1257,6...
Check Spec: Require list and sync plugin for test
@@ -13,7 +13,7 @@ echo "Test specification get" ROOT_FILE=spec_tests.ecf ROOT_MOUNTPOINT=/test/script/spec -if is_plugin_available dump +if is_plugin_available dump && is_plugin_available list && is_plugin_available sync then "$KDB" mount $ROOT_FILE $ROOT_MOUNTPOINT dump 1>/dev/null succeed_if "could not mount root: $R...
doc: explain intr storm monitor params in acrn-dm add the introduction of interrupt storm monitor params in acrn-dm commond lines.
@@ -54,7 +54,7 @@ options: acrn-dm [-abehuwxACHPSTWY] [-c vcpus] [-g <gdb port>] [-l <lpc>] [-m mem] [-p vcpu:hostcpu] [-s <pci>] [-U uuid] [--vsbl vsbl_file_name] [--part_info part_info_name] - [--enable_trusty] <vm> + [--enable_trusty] [--intr_monitor param_setting] <vm> -a: local apic is in xAPIC mode (deprecated) -...
News: Add introductory sentences to sections
@@ -50,6 +50,7 @@ You can also read the news [on our website](https://www.libelektra.org/news/0.8. ## Plugins +The following section lists news about the [modules](https://www.libelektra.org/plugins/readme) we updated in this release. ### <<Plugin1>> @@ -62,6 +63,8 @@ You can also read the news [on our website](https:/...
Allow building with external jsoncpp Tested-by: Build Bot
@@ -309,7 +309,14 @@ ADD_SUBDIRECTORY(src/vbucket) ADD_SUBDIRECTORY(contrib/cbsasl) ADD_SUBDIRECTORY(contrib/cliopts) ADD_SUBDIRECTORY(src/ssl) +IF(NOT LCB_JSONCPP_LIB) ADD_SUBDIRECTORY(contrib/lcb-jsoncpp) +ENDIF() +IF(NOT LCB_JSONCPP_INCLUDE_DIR) + INCLUDE_DIRECTORIES(contrib/lcb-jsoncpp) +ELSE() + INCLUDE_DIRECTORIE...
Don't intercept our own getaddrinfo in transport. We don't want this in DNS metrics.
struct _transport_t { cfg_transport_t type; - ssize_t (*write)(int, const void *, size_t); ssize_t (*send)(int, const void *, size_t, int); int (*open)(const char *, int, ...); int (*dup2)(int, int); int (*close)(int); + int (*fcntl)(int, int, ...); + ssize_t (*write)(int, const void *, size_t); int (*socket)(int, int,...
Always use the best render scale quality available Because why not. See <https://wiki.libsdl.org/SDL_HINT_RENDER_SCALE_QUALITY>.
@@ -18,8 +18,8 @@ SDL_bool sdl_init_and_configure(void) { atexit(SDL_Quit); - // Bilinear resizing - if (!SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1")) { + // Use the best available scale quality + if (!SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "2")) { LOGW("Could not enable bilinear filtering"); }
examples/apache: no need to instrument server/util.c any more
@@ -108,63 +108,6 @@ index bda60827c..2e4abccfe 100644 char c; int showcompile = 0, showdirectives = 0; const char *confname = SERVER_CONFIG_FILE; -diff --git a/server/util.c b/server/util.c -index d302764e3..e4848b2c8 100644 ---- a/server/util.c -+++ b/server/util.c -@@ -27,6 +27,8 @@ - * #define DEBUG_CFG_LINES to tr...
update for big-endian MPU.
#ifndef MRBC_SRC_OPCODE_H_ #define MRBC_SRC_OPCODE_H_ +#include <stdint.h> + #ifdef __cplusplus extern "C" { #endif -#define GET_OPCODE(code) ((code) & 0x7f) -#define GETARG_A(code) (((code) >> 23) & 0x1ff) -#define GETARG_B(code) (((code) >> 14) & 0x1ff) -#define GETARG_C(code) (((code) >> 7) & 0x7f) -#define GETARG_A...
Print comprehensible progress messages
@@ -720,10 +720,10 @@ public: bool IsContinueTraining(const TMetricsAndTimeLeftHistory& /*history*/) override { ++IterationIdx; - constexpr double HeartbeatSeconds = 1; + constexpr double HeartbeatSeconds = 600; if (TrainTimer.Passed() > HeartbeatSeconds) { TSetLogging infomationMode(ELoggingLevel::Info); - CATBOOST_IN...
porting: Assert when setting data for queued event Setting data when event is already queued always indicates bug in code.
#include <stdint.h> #include <string.h> +#include <assert.h> #include "os/os.h" #ifdef __cplusplus @@ -146,6 +147,7 @@ ble_npl_event_get_arg(struct ble_npl_event *ev) static inline void ble_npl_event_set_arg(struct ble_npl_event *ev, void *arg) { + assert(ev->ev.ev_queued == 0); ev->ev.ev_arg = arg; }
Add Flocklab Openmotes as an example deployment mapping
@@ -63,6 +63,21 @@ const struct id_mac deployment_cooja8[] = { { 0, {{0}}} }; +/** \brief An example mapping for Openmotes in Flocklab. + * To use, set DEPLOYMENT_MAPPING to deployment_flocklab_openmotes */ +const struct id_mac deployment_flocklab_openmotes[] = { + { 3, {{0x00,0x12,0x4b,0x00,0x06,0x0d,0x9b,0x29}}}, + {...
DOCS: Add link to 19.08 test framework docs
@@ -4,6 +4,7 @@ Test Framework Documentation {#test_framework_doc} PyDoc generated documentation for the "make test" framework is available for the following releases: +- [Test framework documentation for VPP 19.08](https://docs.fd.io/vpp/19.08/vpp_make_test/html) - [Test framework documentation for VPP 19.04](https://...
Enabling building Bionic packages.
@@ -1030,7 +1030,7 @@ yanlr/YAML(((Base)?Listener|ImprovedSymbolNames)|.h)|\ def generateArtifactStages() { def tasks = [:] tasks << buildDebianPackage("buildPackage/debian/buster", DOCKER_IMAGES.buster) - // tasks << buildDebianPackage("buildPackage/debian/bionic", DOCKER_IMAGES.bionic) + tasks << buildDebianPackage("...
getscom: Add chip info for P9. Took the cfam values from hw/xscom.
@@ -60,6 +60,12 @@ static void print_chip_info(uint32_t chip_id) case 0xd3: name = "P8NVL (Naples) processor"; break; + case 0xd1: + name = "P9 (Nimbus) processor"; + break; + case 0xd4: + name = "P9 (Cumulus) processor"; + break; case 0xe9: name = "Centaur memory buffer"; break;
Remove ChooseRelationNameWithCache() and a merge fixme It's not being used since Greenplum 6, remove and align to the upstream.
@@ -2467,12 +2467,9 @@ makeObjectName(const char *name1, const char *name2, const char *label) * Note: it is theoretically possible to get a collision anyway, if someone * else chooses the same name concurrently. This is fairly unlikely to be * a problem in practice, especially if one is holding an exclusive lock on - ...
http_client: fixing SSL error when specifying 443 port in the host header
@@ -530,7 +530,13 @@ static int add_host_and_content_length(struct flb_http_client *c) out_port = c->port; } + if (c->flags & FLB_IO_TLS && out_port == 443) { + tmp = flb_sds_copy(host, out_host, strlen(out_host)); + } + else { tmp = flb_sds_printf(&host, "%s:%i", out_host, out_port); + } + if (!tmp) { flb_sds_destroy(...
Update mailing list URL.
+16 December 2019: George + - Update mailing list URL. + 12 December 2019: Ralph - Master is 1.9.7 in development. - Fix typo to let serve-expired-ttl work with ub_ctx_set_option(), by
If none of the BUILD_ options is set, enable them all
@@ -73,6 +73,18 @@ endif # # Beginning of system configuration # +ifneq ($(BUILD_SINGLE),1) +ifneq ($(BUILD_DOUBLE),1) +ifneq ($(BUILD_COMPLEX),1) +ifneq ($(BUILD_COMPLEX16),1) +override BUILD_SINGLE=1 +override BUILD_DOUBLE=1 +override BUILD_COMPLEX=1 +override BUILD_COMPLEX16=1 +endif +endif +endif +endif ifndef HOST...
stm32/adc: Update ADC driver to work with the new H7 HAL. Use NB_TO_CHANNEL to map decimal numbers to channel numbers. And use the correct rank to initialize channels (ADC_REGULAR_RANK_1).
#define ADC_SCALE (ADC_SCALE_V / ((1 << ADC_CAL_BITS) - 1)) #define VREFIN_CAL ((uint16_t *)ADC_CAL_ADDRESS) +#ifndef __HAL_ADC_IS_CHANNEL_INTERNAL +#define __HAL_ADC_IS_CHANNEL_INTERNAL(channel) \ + (channel == ADC_CHANNEL_VBAT \ + || channel == ADC_CHANNEL_VREFINT \ + || channel == ADC_CHANNEL_TEMPSENSOR) +#endif + t...
examples: nxwidget: nxstyle fixes nxstyle fixes for nxwidget exaples
@@ -590,7 +590,7 @@ void CWidgetControl::newMouseEvent(FAR const struct nxgl_point_s *pos, uint8_t b #ifdef CONFIG_NX_KBD void CWidgetControl::newKeyboardEvent(uint8_t nCh, FAR const uint8_t *pStr) { - FAR uint8_t *pBuffer = &m_kbdbuf[m_nCh]; + FAR uint8_t *buffer = &m_kbdbuf[m_nCh]; // Append each new character to key...
Add test for tofloat shadowing
@@ -1039,6 +1039,11 @@ describe("Pallene coder /", function() end return res end + + function tofloat_shadowing(x:integer) : float + local tofloat = 1.0 + return (x + tofloat) + end ]])) it("local variable doesn't shadow its type annotation", function() @@ -1056,6 +1061,10 @@ describe("Pallene coder /", function() it("...
cram,win: fixed tests where long doubles are not supported
@@ -219,17 +219,17 @@ Testing all assert messages [----] reference: 0.33333333333333331 [----] failmessages.c:108: Assertion Failed [----] lt(ldbl, 1 / 3.l, 0): - [----] actual: 0.333333333333333333342 + \[----\] actual: 0\.3333333333333333(33342|1) (re) [----] reference: 0 [----] le(ldbl, 1 / 3.l, 0): - [----] actual:...
client: Fix client does not finish on error
@@ -469,6 +469,8 @@ Client::~Client() { } void Client::disconnect() { + handle_error(); + config.tx_loss_prob = 0; ev_timer_stop(loop_, &delay_stream_timer_); @@ -481,7 +483,6 @@ void Client::disconnect() { ev_signal_stop(loop_, &sigintev_); - handle_error(); } void Client::close() {
Fix failing perf counter test
@@ -64,7 +64,7 @@ int main(int argc, const char *argv[]) 0, 0, // PERF_DCACHE_MISS 10, 30, // PERF_DCACHE_HIT 0, 0, // PERF_DTLB_MISS - 2, 10, // PERF_UNCOND_BRANCH + 2, 15, // PERF_UNCOND_BRANCH 9, 15, // PERF_COND_BRANCH_TAKEN 1, 8 // PERF_COND_BRANCH_NOT_TAKEN };
Minor code cleanup of Cooja log
@@ -130,14 +130,9 @@ dbg_putchar(int c) unsigned int dbg_send_bytes(const unsigned char *s, unsigned int len) { - unsigned int i = 0; - - while(s && *s != 0) { - if(i >= len) { - break; - } + unsigned int i; + for(i = 0; i < len && s && *s != 0; i++) { putchar(*s++); - i++; } return i; }
remove conv_0 from mcpha/osc.tcl
@@ -5,7 +5,7 @@ cell pavel-demin:user:port_slicer slice_0 { DIN_WIDTH 8 DIN_FROM 0 DIN_TO 0 } -# conv_0/aresetn and writer_0/aresetn +# writer_0/aresetn # Create port_slicer cell pavel-demin:user:port_slicer slice_1 { @@ -121,23 +121,13 @@ cell pavel-demin:user:axis_oscilloscope scope_0 { aresetn slice_0/dout } -# Crea...
docs - add examples for deprecated timestamp format YYYYMMDDHH24MISS. Add examples to note when migration from GPDB 4,5 to 6 What fails in 6 and some workarounds.
not permit tables <codeph>DISTRIBUTED RANDOMLY</codeph> to have primary keys or unique indexes. Restoring such a table from a Greenplum 4.3 or 5 backup will cause an error.</li> <li>Greenplum 6 no longer automatically converts from the deprecated timestamp format - YYYYMMDDHH24MISS. The format could not be parsed unamb...
brya: Set retimer interrupt trigger to FALLING The EC GPIO review recommends setting the retimer interrupts to trigger on the FALLING edge instead of BOTH. BRANCH=none TEST=boots on board ID 1
@@ -23,14 +23,14 @@ GPIO_INT(TABLET_MODE_L, PIN(9, 5), GPIO_INT_BOTH, gmr_tablet_sw GPIO_INT(USB_C0_BC12_INT_ODL, PIN(C, 6), GPIO_INT_FALLING, bc12_interrupt) GPIO_INT(USB_C0_C2_TCPC_INT_ODL, PIN(E, 0), GPIO_INT_FALLING, tcpc_alert_event) GPIO_INT(USB_C0_PPC_INT_ODL, PIN(6, 2), GPIO_INT_FALLING, ppc_interrupt) -GPIO_IN...
removed xerbla and lsame for Makefile
@@ -56,7 +56,7 @@ include ../make.inc # ####################################################################### -ALLAUX = ilaenv.o ieeeck.o lsamen.o xerbla.o xerbla_array.o iparmq.o iparam2stage.o\ +ALLAUX_O = ilaenv.o ieeeck.o lsamen.o xerbla.o xerbla_array.o iparmq.o iparam2stage.o\ ilaprec.o ilatrans.o ilauplo.o ila...
fix error overwriting beginning of config file
@@ -141,11 +141,11 @@ ELSE () ENDIF () IF (FORCE_CXX03) - FILE ( WRITE ${CMAKE_CURRENT_BINARY_DIR}/config/IlmBaseConfig.h "#define ILMBASE_FORCE_CXX03 1\n" ) + FILE ( APPEND ${CMAKE_CURRENT_BINARY_DIR}/config/IlmBaseConfig.h "#define ILMBASE_FORCE_CXX03 1\n" ) ELSE () # really only care about c++11 right now for the th...
build: rename lock
@@ -104,7 +104,7 @@ if(new_target) { // # Main Stages # // Build containers, locked to single build executing -lock('docker-build') { +lock('docker-images') { stage("Build docker images") { parallel generate_docker_images() }
examples: fix vlan_learning example BPF_HASH declaration fixed.
@@ -15,7 +15,7 @@ struct ifindex_leaf_t { BPF_HASH(egress, int, struct ifindex_leaf_t, 4096); // redirect based on mac -> out_ifindex (config-driven) -BPF_HASH(ingress, struct ifindex_leaf_t, 4096); +BPF_HASH(ingress, u64, struct ifindex_leaf_t, 4096); int handle_phys2virt(struct __sk_buff *skb) { // only handle vlan p...
Fix run dialog skipping MRU strings in some cases
@@ -466,7 +466,6 @@ static VOID PhpAddProgramsToComboBox( _In_ HWND ComboBoxHandle ) { - static PH_STRINGREF prefixSr = PH_STRINGREF_INIT(L"\\1"); HANDLE listHandle; INT listCount; @@ -484,33 +483,27 @@ static VOID PhpAddProgramsToComboBox( for (INT i = 0; i < listCount; i++) { - PPH_STRING programName; - PH_STRINGREF ...
[stm32] fix linkscript issue in stm32f411-atk-nano
/* Program Entry, set to mark it as "used" and avoid gc */ MEMORY { - ROM (rx) : ORIGIN = 0x08000000, LENGTH = 256 /* 256KB flash */ + ROM (rx) : ORIGIN = 0x08000000, LENGTH = 256k /* 256KB flash */ RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K sram */ } ENTRY(Reset_Handler)
PR : adds documentation.
@@ -143,11 +143,15 @@ NSD will bind to the listed ip\-address. Can be given multiple times to bind multiple ip\-addresses. Optionally, a port number can be given. If none are given NSD listens to the wildcard interface. Same as commandline option .BR \-a. +.IP To limit which NSD server(s) listen on the given interface,...
Check conn is not null
@@ -840,7 +840,7 @@ ngtcp2_ssize ngtcp2_rtb_recv_ack(ngtcp2_rtb *rtb, const ngtcp2_ack *fr, /* Assume that ngtcp2_pkt_validate_ack(fr) returns 0 */ it = ngtcp2_ksl_lower_bound(&rtb->ents, &largest_ack); if (ngtcp2_ksl_it_end(&it)) { - if (verify_ecn) { + if (conn && verify_ecn) { conn_verify_ecn(conn, pktns, rtb->cc, c...
yaviks: update thermistor naming BRANCH=none TEST="ectool temps all" thermistor name is intended.
}; named-temp-sensors { - memory { + cpu { compatible = "cros-ec,temp-sensor-thermistor", "cros-ec,temp-sensor"; thermistor = <&thermistor_3V3_51K1_47K_4050B>; - enum-name = "TEMP_SENSOR_1"; + enum-name = "TEMP_SENSOR_CPU"; temp_fan_off = <35>; temp_fan_max = <60>; temp_host_high = <85>; adc = <&adc_temp_sensor_1>; pow...
board/asurada_scp/board.h: Format with clang-format BRANCH=none TEST=none
#define CONFIG_ROM_BASE 0x0 #define CONFIG_RAM_BASE 0x58000 #define CONFIG_ROM_SIZE (CONFIG_RAM_BASE - CONFIG_ROM_BASE) -#define CONFIG_RAM_SIZE ((CONFIG_IPC_SHARED_OBJ_ADDR & (~(0x400 - 1))) - \ - CONFIG_RAM_BASE) +#define CONFIG_RAM_SIZE \ + ((CONFIG_IPC_SHARED_OBJ_ADDR & (~(0x400 - 1))) - CONFIG_RAM_BASE) #define SC...
fix Luos_ReadFromContainer returning the wrong message bug.
@@ -562,7 +562,7 @@ error_return_t Luos_ReadMsg(container_t *container, msg_t **returned_msg) return FAILED; } /****************************************************************************** - * @brief read last msg from buffer from a special id container + * @brief read last msg from buffer from a specific id containe...
config-tools: add validation to IVSHMEM widget Add validation to IVSHMEM widget, displaying error msg below the input line. Currently only check for empty line.
<label>Region name: </label> </b-col> <b-col md="4"> - <b-form-input v-model="IVSHMEM_VMO.NAME" placeholder="Any string with no white spaces."/> + <b-form-input :state="validation(IVSHMEM_VMO.NAME)" v-model="IVSHMEM_VMO.NAME" placeholder="Any string with no white spaces."/> + <b-form-invalid-feedback> + must have value...
exercise some additional code for e2e tests
@@ -180,6 +180,8 @@ FILE *launch_xwping(PROTOCOL protocol, uint16_t port, const char *authmode, cons char *argv[] = { protocol == OWAMP ? "../owping/owping" : "../owping/twping", "-c", num_packets, + "-a", "25,50,75", + "-b", ".000001", "-A", (char *) authmode, "-u", (char *) USERID, "-k", pfs_filename, @@ -188,8 +190,...
py/asmx64: Support use of top 8 regs in src_r64 argument.
@@ -285,31 +285,28 @@ void asm_x64_mov_r64_to_mem64(asm_x64_t *as, int src_r64, int dest_r64, int dest } void asm_x64_mov_mem8_to_r64zx(asm_x64_t *as, int src_r64, int src_disp, int dest_r64) { - assert(src_r64 < 8); - if (dest_r64 < 8) { + if (src_r64 < 8 && dest_r64 < 8) { asm_x64_write_byte_2(as, 0x0f, OPCODE_MOVZX_...
sysdeps/managarm: Fix sys_pwrite
@@ -2139,11 +2139,12 @@ int sys_pwrite(int fd, const void *buf, size_t n, off_t off, ssize_t *bytes_writ frg::string<MemoryAllocator> ser(getSysdepsAllocator()); req.SerializeToString(&ser); - auto [offer, send_head, send_tail, imbue_creds, recv_resp] = exchangeMsgsSync( + auto [offer, send_head, imbue_creds, to_write,...
hdata/i2c: Skip unknown device type Do not add unknown I2C devices to device tree.
@@ -322,11 +322,13 @@ int parse_i2c_devs(const struct HDIF_common_hdr *hdr, int idata_index, * outdated or the device is marked as unknown (0xFF) in the * hdat. Log both cases to see what/where/why. */ - if (!type || dev->type == 0xFF) + if (!type || dev->type == 0xFF) { prlog(PR_WARNING, "HDAT I2C: found e%dp%d - %s@%...
fixed empty file name
@@ -1474,7 +1474,7 @@ if((apstaessidlistecleaned != NULL) && (hcpmkidoutname != NULL)) { printf("%llu ESSID changes detected\n", essidchangecount); } - printf("%llu PMKID(s) written to %s\n", writtencount, hcpmkidoldoutname); + printf("%llu PMKID(s) written to %s\n", writtencount, hcpmkidoutname); } }
peview: Add clr type
@@ -44,8 +44,8 @@ typedef struct _STORAGESIGNATURE typedef struct _STORAGEHEADER { - BYTE Flags; // STGHDR_xxx flags. - BYTE Reserved; + UCHAR Flags; // STGHDR_xxx flags. + UCHAR Reserved; USHORT Streams; // How many streams are there. } STORAGEHEADER, *PSTORAGEHEADER; @@ -55,6 +55,17 @@ typedef struct _STORAGESTREAM U...
Fix family_support.cmake to use new skip.txt and only.txt files for skipping mcus
@@ -11,23 +11,52 @@ if (NOT TARGET _family_support_marker) function(family_filter RESULT DIR) get_filename_component(DIR ${DIR} ABSOLUTE BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) - file(GLOB ONLYS "${DIR}/.only.MCU_*") - if (ONLYS) + + if (EXISTS "${DIR}/only.txt") + file(READ "${DIR}/only.txt" ONLYS) + # Replace newlines ...
Extend drivers subcommand to also show supported device IDs
@@ -781,7 +781,9 @@ _papplMainloopShowDrivers( } for (i = 0; i < system->num_drivers; i ++) - printf("%-39s %s\n", system->drivers[i].name, system->drivers[i].description); + { + printf("%s \"%s\" \"%s\" \n", system->drivers[i].name, system->drivers[i].description, system->drivers[i].device_id); + } papplSystemDelete(s...
Change azure build from ubuntu 16.04 to ubuntu 20.04
@@ -6,8 +6,8 @@ stages: timeoutInMinutes: 10 strategy: matrix: - ubuntu16_04: - imageName: 'ubuntu-16.04' + ubuntu20_04: + imageName: 'ubuntu-20.04' mac10_14: imageName: 'macos-10.14' # windows_2017:
Make sure ret type is not null
@@ -50,7 +50,7 @@ bool FunctionOverride::HookRunPureScriptFunction(RED4ext::CClassFunction* apFunc const auto result = call->ScriptFunction(as_args(args), call->Environment); if (!call->Forward) { - if (result.valid()) + if (result.valid() && ret.value && ret.type) Scripting::ToRED(result.get<sol::object>(), &ret); ret...
fixes the c99 fix
@@ -39,9 +39,9 @@ project(ccl VERSION 0.2.1) # Compilation flags if ("${CMAKE_C_COMPILER_ID}" MATCHES "^(Apple)?Clang$") # using Clang, disabling OpenMP support - set(CMAKE_C_FLAGS "-O3 -fomit-frame-pointer -fno-common -fPIC -D__CCL_DATA_DIR__=${CMAKE_INSTALL_PREFIX}/share/ccl") + set(CMAKE_C_FLAGS "-O3 -fomit-frame-po...
board/rtl8721csm/app_start.c : Disable PSRAM MPU setting With PSRAM MPU setting, binary manager cannot load the user binary. So temporarily disable PSRAM MPU setting.
@@ -1000,6 +1000,7 @@ u32 app_mpu_nocache_init(void) mpu_region_cfg(mpu_entry, &mpu_cfg); #endif +#if 0 //fix me! /* set PSRAM Memory Write-Back */ /* To prevent data confusion issue in PSRAM */ mpu_entry = mpu_entry_alloc(); @@ -1010,6 +1011,7 @@ u32 app_mpu_nocache_init(void) mpu_cfg.sh = MPU_NON_SHAREABLE; mpu_cfg.a...
fix new CLI max unnamed API
@@ -291,7 +291,7 @@ print_help: void fio_cli_start AVOID_MACRO(int argc, char const *argv[], int unnamed_min, int unnamed_max, char const *description, char const **names) { - if (unnamed_max > 0 && unnamed_max < unnamed_min) + if (unnamed_max >= 0 && unnamed_max < unnamed_min) unnamed_max = unnamed_min; fio_cli_parser...
back to 64k pages but 32MiB segments and a 1MiB minimal commit size
@@ -132,10 +132,10 @@ typedef int32_t mi_ssize_t; // Main tuning parameters for segment and page sizes // Sizes for 64-bit (usually divide by two for 32-bit) -#define MI_SEGMENT_SLICE_SHIFT (12 + MI_INTPTR_SHIFT) // 32KiB (32KiB on 32-bit) +#define MI_SEGMENT_SLICE_SHIFT (13 + MI_INTPTR_SHIFT) // 64KiB (32KiB on 32-bit...
luci-app-serverchan: bump to 1.85
include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-serverchan -PKG_VERSION:=1.83 +PKG_VERSION:=1.85 PKG_RELEASE:=9 include $(INCLUDE_DIR)/package.mk
Fix unused variable in generate_psa_tests.py Remove the newly-unused variable that became unused in a previous commit.
@@ -714,7 +714,6 @@ def main(args): return # List in a cmake list format (i.e. ';'-separated) if options.list_for_cmake: - filenames = [] print(';'.join(generator.filename_for(name) for name in sorted(generator.TARGETS)), end='') return
add synonym objective for loss_function
@@ -528,6 +528,12 @@ class CatBoost(_CatBoostBase): raise CatboostError("Invalid param `{}`.".format(param)) def _process_synonyms(self, params): + if 'objective' in params: + if 'loss_function' in params: + raise CatboostError('only one of parameters loss_function, objective should be initialized.') + params['loss_fun...
xive: Remove obsolete comment
@@ -1089,8 +1089,6 @@ static void xive_init_vp_allocator(void) * * These are 0x80..0xff, so order 7 starting at 0x80. This will * reserve that range on each chip. - * - * XXX This can go away if we just call xive_reset .. */ assert(buddy_reserve(xive_vp_buddy, 0x80, 7)); }