message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
TCPMv2: PE_TIMER_SINK_REQUEST should not disable on exit or re-entry of SnkReady
BRANCH=none
TEST=Check SINK attach
Tested-by: Denis Brockus | @@ -740,6 +740,7 @@ static void pe_init(int port)
pe[port].dpm_request = 0;
pe[port].dpm_curr_request = 0;
pd_timer_disable(port, PE_TIMER_NO_RESPONSE);
+ pd_timer_disable(port, PE_TIMER_SINK_REQUEST);
pd_timer_disable(port, PE_TIMER_SOURCE_CAP);
pd_timer_disable(port, PE_TIMER_WAIT_AND_ADD_JITTER);
pe[port].data_role ... |
pbio/trajectory: Fix sign of start speed.
If we are reversing the maneuver, this gets reversed too.
This was accidentally removed in | @@ -555,6 +555,7 @@ pbio_error_t pbio_trajectory_new_angle_command(pbio_trajectory_t *trj, const pbi
if (backward) {
c.position_end = c.position_start;
pbio_angle_add_mdeg(&c.position_end, -distance);
+ c.speed_start *= -1;
}
// Calculate the trajectory, assumed to be forward.
|
zephyr: zmake: Clean up metavar for subcommand positional
Setting a metavar here clears up the usage text slightly. Also expand
out on that help string slightly.
BRANCH=none
TEST=output of "zmake --help" | @@ -157,7 +157,11 @@ def get_argparser():
"--zephyr-base", type=pathlib.Path, help="Path to Zephyr OS repository"
)
- sub = parser.add_subparsers(dest="subcommand", help="Subcommand")
+ sub = parser.add_subparsers(
+ dest="subcommand",
+ metavar="subcommand",
+ help="Subcommand to run",
+ )
sub.required = True
configur... |
gdb macros - Include mbuf usrhdr in output. | @@ -51,6 +51,26 @@ Prints the packet header associated with the specified mbuf. If the specified
mbuf does not contain a packet header, the output is indeterminate.
end
+define mn_mbuf_usrhdr_print
+ # Calculate address of user header.
+ set $data_addr = (uint8_t *)&($arg0)->om_data
+ set $phdr_addr = $data_addr + size... |
revert switch-case pattern in mrbc_vm_run function. | @@ -2741,8 +2741,8 @@ int mrbc_vm_run( struct VM *vm )
case OP_EPOP: ret = op_epop (vm, regs); break;
case OP_SENDV: ret = op_dummy_BB (vm, regs); break;
case OP_SENDVB: ret = op_dummy_BB (vm, regs); break;
- case OP_SEND: ret = op_send (vm, regs); break;
- case OP_SENDB: ret = op_send (vm, regs); break; // to op_send
... |
add safety mode to health packet | @@ -162,6 +162,7 @@ int get_health_pkt(void *dat) {
uint8_t gas_interceptor_detected_pkt;
uint8_t car_harness_status_pkt;
uint8_t usb_power_mode_pkt;
+ uint8_t safety_mode_pkt;
} *health = dat;
health->voltage_pkt = adc_get_voltage();
@@ -184,6 +185,7 @@ int get_health_pkt(void *dat) {
health->gmlan_send_errs_pkt = gml... |
Memory leak in inputBitmap | @@ -412,7 +412,7 @@ static void init(grib_accessor* a, const long v, grib_arguments* params)
a->length = 0;
self->bitsToEndData = get_length(a) * 8;
self->unpackMode = CODES_BUFR_UNPACK_STRUCTURE;
-
+ self->inputBitmap = NULL;
/* Assert(a->length>=0); */
}
@@ -461,6 +461,7 @@ static void self_clear(grib_context* c, gri... |
SidebarListHeader: fix again | @@ -53,7 +53,7 @@ export function SidebarListHeader(props: {
const noun = (props.workspace?.type === 'messages') ? 'Messages' : 'Channels';
let feedPath: any = null;
- if (metadata.config && 'group' in metadata?.config && 'resource' in metadata.config.group) {
+ if (metadata?.config && 'group' in metadata?.config && 'r... |
[util] Fix unused vars warning on win* | @@ -795,10 +795,6 @@ void TShellCommand::TImpl::Communicate(TProcessInfo* pi) {
TExitStatus status = 0;
while (true) {
- bool haveIn = false;
- bool haveOut = false;
- bool haveErr = false;
-
{
with_lock (pi->Parent->TerminateMutex) {
if (TerminateIsRequired(pi)) {
@@ -819,6 +815,10 @@ void TShellCommand::TImpl::Commun... |
Add dephash task for CI | @@ -55,3 +55,26 @@ target("cyber_engine_tweaks")
os.cp("scripts/*", "package/bin/x64/plugins/cyber_engine_tweaks/scripts")
os.rm("package/*.zip")
end)
+
+task("dephash")
+ on_run(function ()
+ import("core.project.project")
+ import("private.action.require.impl.package")
+
+ local requires, requires_extra = project.req... |
actually report timings | @@ -1113,8 +1113,8 @@ scs_int SCS(solve)(ScsWork *w, ScsSolution *sol, ScsInfo *info) {
/* populate timings */
info->solve_time = SCS(tocq)(&solve_timer);
info->lin_sys_time = total_lin_sys_time;
- info->lin_sys_time = total_cone_time;
- info->lin_sys_time = total_accel_time;
+ info->cone_time = total_cone_time;
+ info... |
Tests: added test to check port release. | import pytest
+import socket
from unit.control import TestControl
@@ -261,6 +262,33 @@ class TestConfiguration(TestControl):
}
), 'explicit ipv6'
+ def test_listeners_port_release(self):
+ for i in range(10):
+ fail = False
+ with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
+ s.setsockopt(socket.SOL_SOCKET,... |
Tools: Fixed bug in help message.
'sudo' was misplaced. | @@ -14,7 +14,7 @@ Your version of bash(1) isn't supported by this script. You're probably
running on macOS. We recommend that you either install a newer version
of bash(1) or run this script with another shell, such as zsh(1):
- $ zsh ${SUDO_USER:+sudo }$0 ...
+ $ ${SUDO_USER:+sudo }zsh $0 ...
__EOF__
exit 1;
fi;
|
global plugins: elektraGlobalGet
Add the elektraGlobal{Get,Set,Error} functions.
This seemed more practical than using macros everywhere. | @@ -606,8 +606,8 @@ static int elektraGetDoUpdateWithGlobalHooks (KDB * handle, Split * split, KeySe
int pgs_done = 0;
int pgc_done = 0;
- // GLOBAL: getstorage [init]
- // GLOBAL: getstorage [max once]
+ elektraGlobalGet(handle, ks, parentKey, GETSTORAGE, INIT);
+ elektraGlobalGet(handle, ks, parentKey, GETSTORAGE, MA... |
sse: add SIMDE_VECTORIZE to simde_mm_rcp_ps loop | @@ -3079,6 +3079,7 @@ simde_mm_rcp_ps (simde__m128 a) {
r_.f32 = 1.0f / a_.f32;
#elif defined(__STDC_IEC_559__)
/* https://stackoverflow.com/questions/12227126/division-as-multiply-and-lut-fast-float-division-reciprocal/12228234#12228234 */
+ SIMDE_VECTORIZE
for (size_t i = 0 ; i < (sizeof(r_.f32) / sizeof(r_.f32[0])) ... |
make example.py more straightforward | @@ -4,10 +4,12 @@ import sys
actx = pysurvive.SimpleContext(sys.argv)
for obj in actx.Objects():
- print(obj.Name())
+ print(str(obj.Name(), 'utf-8'))
while actx.Running():
updated = actx.NextUpdated()
if updated:
- print(updated.Name(), updated.Pose())
-
+ poseObj = updated.Pose()
+ poseData = poseObj[0]
+ poseTimesta... |
Default buffer/texture/sampler; | @@ -130,6 +130,9 @@ static struct {
float background[4];
Texture* window;
Attachment attachments[16];
+ Buffer* defaultBuffer;
+ Texture* defaultTexture;
+ Sampler* defaultSampler;
map_t pipelineLookup;
arr_t(gpu_pipeline*) pipelines;
arr_t(Layout) layouts;
@@ -196,12 +199,59 @@ bool lovrGraphicsInit(bool debug, bool v... |
Qualified the use of 'set', removing ambiguity that could cause build
errors with some compilers. Resolves arq5x/bedtools2#538. | @@ -123,7 +123,7 @@ protected:
bool _useFullBamTags;
//members for enforcing sorted order.
- set<string> _foundChroms;
+ std::set<string> _foundChroms;
string _prevChrom;
int _prevStart;
int _prevChromId;
|
[numerics] reduce verbose when solver fails | @@ -81,7 +81,7 @@ void compute_racines(double * Poly, int *nbRealRacines, double *Racines)
}
else
{
- printf("FC3D_unitary_enumerative: degre of polynom is 0.");
+ if (verbose) printf("FC3D_unitary_enumerative: degre of polynom is 0.");
degp1 = 1;
}
(*nbRealRacines) = 0;
@@ -244,9 +244,13 @@ int fc3d_unitary_enumerativ... |
Prefer sysrandom in meson.build | @@ -8,14 +8,17 @@ int main() { return getentropy((void*)0, 0); }
'''
sysrandom = compiler.links(code, name : 'getentropy in sys/random.h')
conf_data.set('ENT_GE_SYSRANDOM', sysrandom)
+have_getentropy = sysrandom
+if not have_getentropy
code = '''#include <unistd.h>
int main() { return getentropy((void*)0, 0); }
'''
un... |
l16 ptime 5 -> 4ms | @@ -74,8 +74,8 @@ static int decode(struct audec_state *st, int fmt, void *sampv, size_t *sampc,
/* See RFC 3551 */
static struct aucodec l16v[NR_CODECS] = {
-{LE_INIT, 0, "L16", 48000, 48000, 2, 2, 5, 0, 0, encode, 0, decode, 0,0,0},
-{LE_INIT, "10", "L16", 44100, 44100, 2, 2, 5, 0, 0, encode, 0, decode, 0,0,0},
+{LE_... |
Update README.md
correct stage2 information | @@ -46,7 +46,7 @@ Daggers are mined in every main block. There are three periods of mining:
| Stage 1 | Stage 2 | Stage 3 |
| -- | -- | -- |
-| Block #1 to #1,017,322 | Block #1,017,323 | Each 2,097,152 blocks |
+| Block #1 to #1,017,322 | Block #1,017,323 to #2,097,151 | Each 2,097,152 blocks |
| 1024 XDAG each block ... |
Update keypoints example script. | @@ -42,13 +42,14 @@ while (True):
# keypoints from the first scale only, which will match one of the scales in the first descriptor.
kpts2 = img.find_keypoints(max_keypoints=150, threshold=10, normalized=True)
if (kpts2):
- c = image.match_descriptor(kpts1, kpts2, threshold=85)
- match = c[6] # C[6] contains the number... |
fix connect code addr len | @@ -75,11 +75,11 @@ static int tls_connect_init(mbedtls_ssl_context *ssl, mbedtls_net_context *fd, c
}
// Start connection
- ret = connect(fd->fd, (const struct sockaddr *) addr, sizeof(IP));
+ ret = connect(fd->fd, (const struct sockaddr *) addr, addr_len(addr));
if (ret < 0 && errno != EINPROGRESS) {
+ log_error("TLS... |
fix http issue | @@ -62,14 +62,22 @@ int g_rpc_white_enable = 1; // 0 disable white list, 1 enable white list
static struct pollfd *g_fds = NULL;
struct xdag_rpc_connection {
struct pollfd fd;
+ int is_http;
int pos;
};
+static void wrap_http(int fd)
+{
+ write(fd, "HTTP/1.1 200 OK\r\n", 17);
+ write(fd, "Content-Type: application/json... |
fix ammeter input in sdr-transceiver-hpsdr.c | @@ -1235,9 +1235,6 @@ void *handler_ep6(void *arg)
pointer[3] |= (*gpio_in & 7) | cw_ptt;
if(header_offset == 8)
{
- value = xadc[153] >> 3;
- pointer[4] = (value >> 8) & 0xff;
- pointer[5] = value & 0xff;
value = xadc[152] >> 3;
pointer[6] = (value >> 8) & 0xff;
pointer[7] = value & 0xff;
@@ -1251,6 +1248,12 @@ void *... |
toml: fixed boolean being written too deliberate | @@ -392,6 +392,7 @@ static int writeScalar (Key * key, Writer * writer)
}
keyRewindMeta (key);
const Key * origValue = findMetaKey (key, "origvalue");
+ const Key * type = findMetaKey (key, "type");
const char * valueStr = keyString(key);
if (origValue != NULL)
{
@@ -402,7 +403,7 @@ static int writeScalar (Key * key, W... |
linux: Use sigtimedwait() directly | #include <dlfcn.h>
#include <errno.h>
#include <fcntl.h>
+#include <inttypes.h>
#include <locale.h>
#include <net/if.h>
#include <net/route.h>
#include <netinet/in.h>
#include <netinet/ip.h>
+#include <setjmp.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <inttypes.h>
-#incl... |
Add macros to generate ydl descriptors | @@ -3354,11 +3354,43 @@ macro _SRC("supp", SRC, SRCFLAGS...) {
.CMD=$COPY_CMD ${input:SRC} ${output;suf=.o:SRC} ${kv;hide:"p SP"} ${kv;hide:"pc light-cyan"}
}
+YDL_FLAGS= --force-color -I ${ARCADIA_ROOT}
+YDL_DESC_FLAGS=
+
macro _SRC("ydl", SRC, SRCFLAGS...) {
- .CMD=${tool:"statbox/ydl/compiler/tooling/ydlc/bin"} --fo... |
Check the return of getsockname | #pragma once
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
static void * mm__dup_(const void * src, size_t size) {
void * mem = malloc(size);
@@ -12,14 +16,14 @@ static void * mm__dup_(const void * src, size_t size) {
#define bind__sock_port0_(HTP) ({ \
struct sockaddr_in sin; \
socklen_t len = len = ... |
Emitter: Add a raw version of sym searching. | @@ -924,15 +924,15 @@ static uint16_t checked_close_over_var(lily_emit_state *emit, lily_var *var)
/* See if the given sym has been closed over.
Success: The spot
Failure: -1 */
-static int find_closed_sym_spot(lily_emit_state *emit, uint16_t depth,
- lily_sym *sym)
+static int find_closed_sym_spot_raw(lily_emit_state ... |
Update: Nalifier.py: allow to change instance and concept creation flags from command line | @@ -427,6 +427,12 @@ if __name__ == "__main__":
if inp.startswith("*COMMON_PROPERTY_EXP="):
nalifier.COMMON_PROPERTY_EXP = float(inp.split("*COMMON_PROPERTY_EXP=")[1])
continue
+ if inp.startswith("*CONCEPT_CREATION="):
+ nalifier.ConceptCreation = True if inp.split("*CONCEPT_CREATION=")[1].lower() == "true" else False... |
[core] http_response_match_if_range()
separate func to check "If-Range" | @@ -552,6 +552,16 @@ static int http_response_parse_range(request_st * const r, stat_cache_entry * co
}
+__attribute_pure__
+static int http_response_match_if_range(request_st * const r, const buffer * const mtime) {
+ const buffer *vb = http_header_request_get(r, HTTP_HEADER_IF_RANGE,
+ CONST_STR_LEN("If-Range"));
+ r... |
group-pull-hook: disabling remove on nack | ++ on-pull-nack
|= [=resource =tang]
^- (quip card _this)
- %- (slog tang)
- :_ this
- =- [%pass / %agent [our.bowl %group-store] %poke -]~
- group-update-0+!>([%remove-group resource ~])
+ `this
::
++ on-pull-kick
|= =resource
|
ci: remove server-build-* resources from non-prod pipelines
Below resources are only used by the "Publish Server Builds" job, which
is only enabled on prod pipelines, so we should remove these resources
from non-prod pipelines otherwise they will cause errors when
set-pipeline.
server-build-centos6
server-build-centos7... | @@ -527,6 +527,7 @@ resources:
regexp: server/published/master/server-build-(.*)-rhel6_x86_64((rc-build-type-gcs)).tar.gz
{% endif %}
+{% endif %}
{% endif %}
{% if pipeline_configuration == "prod" %}
- name: bin_gpdb_centos6_icw_green
@@ -614,6 +615,7 @@ resources:
regexp: server/published/master/server-build-(.*)-rhe... |
Fix icon fallback scaling | @@ -845,11 +845,11 @@ VOID PhGetStockApplicationIcon(
PhDereferenceObject(dllFileName);
}
- // Fallback icons - this is bad, because the icon isn't scaled correctly.
+ // Fallback icons
if (!smallIcon)
- smallIcon = LoadIcon(NULL, IDI_APPLICATION);
+ smallIcon = PhLoadIcon(NULL, MAKEINTRESOURCE(IDI_APPLICATION), PH_LOA... |
typechecker-regex-prototype: hide advanced cmake variables | @@ -132,6 +132,8 @@ set (HASKELL_NOTFOUND_INFO "${HASKELL_NOTFOUND_INFO}, please refer to the readme
mark_as_advanced (
GHC_EXECUTABLE
GHC-PKG_EXECUTABLE
+ ALEX_EXECUTABLE
+ HAPPY_EXECUTABLE
C2HS_EXECUTABLE
CABAL_EXECUTABLE
CABAL_DYNLIB_PATH
|
WebPDemuxGetI: add doc details around WebPFormatFeature | @@ -115,20 +115,25 @@ WEBP_EXTERN void WebPDemuxDelete(WebPDemuxer* dmux);
// Data/information extraction.
typedef enum WebPFormatFeature {
- WEBP_FF_FORMAT_FLAGS, // Extended format flags present in the 'VP8X' chunk.
+ WEBP_FF_FORMAT_FLAGS, // bit-wise combination of WebPFeatureFlags
+ // corresponding to the 'VP8X' c... |
add ff_racepit crsf | "BRUSHLESS_TARGET": "",
"RX_UNIFIED_SERIAL": ""
}
+ },
+ {
+ "name": "brushless.crsf",
+ "defines": {
+ "BRUSHLESS_TARGET": "",
+ "RX_CRSF": ""
+ }
}
]
}
|
Change default logging level to NONE | /* Log configuration */
#include "sys/log.h"
#define LOG_MODULE "CC2538 SoC"
-#define LOG_LEVEL LOG_LEVEL_INFO
+#define LOG_LEVEL LOG_LEVEL_NONE
/*----------------------------------------------------------------------------*/
uint8_t
soc_get_rev(void)
|
Clean-up memory leaks in ccl_sample_run | @@ -140,6 +140,10 @@ int main(int argc,char **argv)
ccl_cl_tracer_free(ct_cl);
ccl_cl_tracer_free(ct_wl);
+ // Free arrays
+ free(a_arr_resample);
+ free(nz_resampled);
+
//Halo mass function
printf("M\tdN/dlog10M(z = 0, 0.5, 1))\n");
for(int logM=9;logM<=15;logM+=1) {
@@ -226,6 +230,7 @@ int main(int argc,char **argv)... |
Add an evp_libctx_test test run for legacy provider | @@ -16,6 +16,7 @@ BEGIN {
setup("test_evp_libctx");
}
+my $no_legacy = disabled('legacy') || ($ENV{NO_LEGACY} // 0);
my $no_fips = disabled('fips') || ($ENV{NO_FIPS} // 0);
use lib srctop_dir('Configurations');
@@ -24,9 +25,7 @@ use lib bldtop_dir('.');
# If no fips then run the test with no extra arguments.
my @test_a... |
Fix fts_unblock_primary answer file.
Remove the extra WARNING only gets generated for MAC. | @@ -156,9 +156,8 @@ t
-- bring the mirror back up and see primary s/u and mirror s/u
-1U: select pg_ctl((select datadir from gp_segment_configuration c where c.role='m' and c.content=2), 'start', (select port from gp_segment_configuration where content = 2 and preferred_role = 'm'), 2, (select dbid from gp_segment_conf... |
Added line directing user to web site in print_usage. | @@ -491,6 +491,7 @@ static void print_usage(void)
printf("Options:\n");
printf(" -s, --size <SIZE> - block size to divide files (default 1MB)\n");
printf(" -h, --help - print usage\n");
+ printf("For more information see https://mpifileutils.readthedocs.io.");
printf("\n");
fflush(stdout);
return;
|
test/params_test.c: make construct_api_params() static
With enough warning flags, compilers complain when a non-static
function hasn't been properly declared... | @@ -387,7 +387,7 @@ static const OSSL_PARAM static_api_params[] = {
* The same array again, but constructed at run-time
* This exercises the OSSL_PARAM constructor functions
*/
-OSSL_PARAM *construct_api_params(void)
+static OSSL_PARAM *construct_api_params(void)
{
size_t n = 0;
static OSSL_PARAM params[10];
|
session: use table_format in sh app ns
Type: refactor | #include <vnet/session/session.h>
#include <vnet/fib/fib_table.h>
#include <vppinfra/file.h>
+#include <vppinfra/format_table.h>
#include <vlib/unix/unix.h>
/**
@@ -373,6 +374,7 @@ show_app_ns_fn (vlib_main_t * vm, unformat_input_t * main_input,
app_namespace_t *app_ns;
vnet_main_t *vnm = vnet_get_main ();
session_tabl... |
test_event_free: check for image support
Don't run image-related tests if images are not supported. | @@ -33,16 +33,25 @@ int main(int argc, char **argv)
cl_context ctx;
cl_command_queue queue;
cl_device_id did;
+ cl_bool has_img = CL_FALSE;
+
+ const size_t buf_size = sizeof(cl_int);
+
+ cl_mem buf, img;
+
+
poclu_get_any_device(&ctx, &did, &queue);
TEST_ASSERT(ctx);
TEST_ASSERT(did);
TEST_ASSERT(queue);
- const size_... |
ra-tls/ra-tls-server: fix build failure if CWD is ra-tls/ra-tls-server
This commit resolves the following build failure:
sgxsdk-ra-attester_u.c:19:10: fatal error: ias-ra.h: No such file or directory
#include <ias-ra.h>
^~~~~~~~~~
compilation terminated. | #include <ra.h>
#include <ra-attester.h>
-#include <ias-ra.h>
+#include "ias-ra.h"
#ifdef RATLS_ECDSA
void ecdsa_get_quote(sgx_report_t* report, uint8_t* quote, uint32_t* quote_len)
|
nRF52 SDK: Enable setting NRF5 and UNITY path via env variables
This commit will allow NRF5_PATH and UNITY_PATH to be configured via
environmental variables. | PROJECT_NAME := u_pca10056
TARGETS := nrf52840_xxaa
OUTPUT_DIRECTORY := _build
-UNITY_PATH := ../../../../../../../../Unity
-NRF5_PATH := ../../../../../../../../nrf5
+UNITY_PATH ?= ../../../../../../../../Unity
+NRF5_PATH ?= ../../../../../../../../nrf5
JLINK_SERIAL_NUMBER :=
# This is picked up in gcc_startup_nrf5284... |
ST7789: 240x240 Handle unsupported rotations gracefully. | @@ -123,15 +123,6 @@ namespace pimoroni {
int col_offset = 0;
switch(rotate) {
- case ROTATE_0:
- if (!round) row_offset = 0;
- caset[0] = col_offset;
- caset[1] = width + col_offset - 1;
- raset[0] = row_offset;
- raset[1] = width + row_offset - 1;
-
- madctl = MADCTL::HORIZ_ORDER;
- break;
case ROTATE_90:
if (!round)... |
options/posix: add missing IFF_* defines to net/if.h | @@ -62,9 +62,23 @@ unsigned int if_nametoindex(const char *);
#define IFF_UP 0x1
#define IFF_BROADCAST 0x2
+#define IFF_DEBUG 0x4
#define IFF_LOOPBACK 0x8
#define IFF_POINTOPOINT 0x10
+#define IFF_NOTRAILERS 0x20
#define IFF_RUNNING 0x40
+#define IFF_NOARP 0x80
+#define IFF_PROMISC 0x100
+#define IFF_ALLMULTI 0x200
+#d... |
docs: incredibly important change | @@ -19,7 +19,7 @@ configuration options. These tips are highlighted via the following format:
\begin{center}
\begin{tcolorbox}[]
\small
-Any sufficiently advanced technology is indistinguishable from magic. --Arthur C. Clarke
+I propose we leave math to the machines and go play outside. --Calvin
\end{tcolorbox}
\end{ce... |
Docs: Sync changelog with | @@ -2,6 +2,7 @@ OpenCore Changelog
==================
#### v0.7.1
- Added `SyncTableIds` quirk to sync modified table OEM identifiers
+- Added CPU Info (MSRs) dumping to `SysReport`
#### v0.7.0
- Fixed NVRAM reset on firmware with write-protected `BootOptionSupport`
|
OpenGLGraph: make sure y lines are at least 1 | @@ -545,7 +545,7 @@ void OpenGLGraph::CalculateGrid()
interval = settings.visibleArea.y2 - settings.visibleArea.y1; // span of y axis
if (settings.gridYlines > 0)
{
- int tmpLines = settings.dataViewHeight / (2 * settings.gridValuesHeight); //2x to be safe in double scaling steps
+ int tmpLines = 1+settings.dataViewHei... |
Fix regression in take/drop. | (def f (if use-str string/slice tuple/slice))
(def len (length ind))
# make sure end is in [0, len]
- (def end (if (< n 0) n (if (> n len) len n)))
+ (def m (if (> n 0) n 0))
+ (def end (if (> m len) len m))
(f ind 0 end))
(defn take-until
(def f (if use-str string/slice tuple/slice))
(def len (length ind))
# make sure... |
tools: acrnlog: fix issues founded in static analysis
fixed two issues: 1) potential uninitiliazed usage of 'len' in
hvlog_read_dev(); 2) NULL dereference of 'last' if 'calloc' failure.
Acked-by: Eddie Dong | @@ -127,7 +127,7 @@ static int get_cpu_num(void)
struct hvlog_msg *hvlog_read_dev(struct hvlog_dev *dev)
{
int ret;
- size_t len;
+ size_t len = 0;
struct hvlog_msg *msg[2];
int msg_num;
@@ -464,6 +464,8 @@ int main(int argc, char *argv[])
last = calloc(pcpu_num, sizeof(struct hvlog_data));
if (!last) {
printf("Failed ... |
Add rpath to lua on macosx. | @@ -159,6 +159,10 @@ docker run \
-DPYTHON_INCLUDE_DIR=/opt/osxcross/target/macports/pkgs/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Headers \
-DPYTHON_LIBRARY=/opt/osxcross/target/macports/pkgs/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python && \
cmake --build . --target tinysplinelua... |
NVMe doc update | # NVMe Usage
-When SNAP is built for the FGT card with NVMe support enabled, the SNAP framework provides an easy to use interface to initiate NVMe writes and reads to and from the onboard main memory. Before the NVMe sub-system can be used, it needs to be initialized. The **"snap_nvme_init"** utility program in the sof... |
Updated README to inform about Android building process | @@ -41,6 +41,17 @@ make GPIOSUPPORT=on
make GPIOSUPPORT=on install (as super user)
```
+Compile for Android
+--------------
+
+You need:
+* Android NDK installed in your system and in path variable
+
+* This repository cloned with all submodules (`--recursive` flag in `git clone` or `git submodules update` command run)... |
io: relax timing in tests for memcheck/asan tests | #include <kdbio.h>
#include <kdbiotest.h>
-#define TIMER_TEST_INTERVAL 50
+#define TIMER_TEST_INTERVAL 250
#define TIMER_TEST_TIMES 3
#define TIMER_DIFF_WARNING_THRESHOLD 5
#define TIMER_DIFF_ERROR_THRESHOLD (TIMER_DIFF_WARNING_THRESHOLD * 100)
-// Control interval is 10ms * 5 = 50ms for the probe interval
+// Control ... |
Specify unit for rk_offset in AES context | @@ -80,7 +80,8 @@ extern "C" {
typedef struct mbedtls_aes_context
{
int MBEDTLS_PRIVATE(nr); /*!< The number of rounds. */
- size_t MBEDTLS_PRIVATE(rk_offset); /*!< Buffer offset for AES round keys. */
+ size_t MBEDTLS_PRIVATE(rk_offset); /*!< The offset in array elements to AES
+ round keys in the buffer. */
uint32_t ... |
[util] Actualize docs | @@ -15,7 +15,7 @@ One should not include it directly. It will be included implicitly when you add
GENERATE_ENUM_SERIALIZATION_WITH_HEADER(your_header_with_your_enum.h)
-in your CMakeLists.txt
+in your ya.make
@see https://st.yandex-team.ru/IGNIETFERRO-333
@see https://wiki.yandex-team.ru/PoiskovajaPlatforma/Build/Writi... |
Deleted too much... | @@ -894,6 +894,10 @@ int elektraSpecGet (Plugin * handle, KeySet * returned, Key * parentKey)
int ret = doGlobbing (parentKey, ks, specKS, ch, GET, clean);
ksAppend (returned, specKS);
ksAppend (returned, ks);
+ ksDel (ks);
+ ksDel (specKS);
+ elektraFree (ch);
+ ksRewind (returned);
return ret;
}
|
minor cleanup in pier.c | @@ -193,6 +193,9 @@ _pier_db_read_header(u3_pier* pir_u)
u3z(life);
}
+/* _pier_db_on_commit_loaded(): lmdb read callback
+** RETAIN mat
+*/
static c3_o
_pier_db_on_commit_loaded(u3_pier* pir_u,
c3_d id,
@@ -702,18 +705,17 @@ _pier_work_replace(u3_writ* wit_u,
u3_pier_bail();
}
- /* move backward in work processing
- *... |
Add `bool single_selected_mode` to `lv_list_ext_t` | @@ -57,6 +57,7 @@ typedef struct
lv_style_t *styles_btn[LV_BTN_STATE_NUM]; /*Styles of the list element buttons*/
lv_style_t *style_img; /*Style of the list element images on buttons*/
uint32_t size; /*the number of items(buttons) in the list*/
+ bool single_selected_mode; /* whether single selected mode is enabled */
... |
Application.mk: update .depend dependency for SRCS with VPATH | @@ -220,11 +220,11 @@ else
context::
endif
-.depend: Makefile $(SRCS)
+.depend: Makefile $(wildcard $(foreach SRC, $(SRCS), $(addsuffix /$(SRC), $(subst :, ,$(VPATH)))))
ifeq ($(filter %$(CXXEXT),$(SRCS)),)
- $(Q) $(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(filter-out Makefile,$(wildcard $^)) >Make.dep
+ $(Q) $(M... |
Fix MSVC issues with variables named near/far; | @@ -136,20 +136,20 @@ int l_lovrTransformSetOrthographic(lua_State* L) {
float right = luaL_checknumber(L, 3);
float top = luaL_checknumber(L, 4);
float bottom = luaL_checknumber(L, 5);
- float near = luaL_checknumber(L, 6);
- float far = luaL_checknumber(L, 7);
- mat4_orthographic(transform->matrix, left, right, top, ... |
sub shm BUGFIX print valid event and request id | @@ -162,8 +162,12 @@ sr_shmsub_notify_finish_wrunlock(sr_sub_shm_t *sub_shm, size_t shm_struct_size,
struct timespec timeout_ts;
sr_error_t err_code;
char *ptr, *err_msg, *err_xpath;
+ sr_sub_event_t event;
+ uint32_t request_id;
int ret;
+ event = sub_shm->event;
+ request_id = sub_shm->request_id;
sr_time_get(&timeou... |
Fix locks_dir setting not honoured. | od_file_lock_t od_get_execution_lock(char *prefix)
{
char od_exec_lock_name[ODYSSEY_LOCK_MAXPATH - 4];
- if (prefix == NULL) {
+ if (prefix != NULL) {
sprintf(od_exec_lock_name, "%s/%s:%d", prefix,
ODYSSEY_LOCK_PREFIX, ODYSSEY_EXEC_LOCK_HASH);
} else {
@@ -35,7 +35,7 @@ od_file_lock_t od_get_execution_lock(char *prefix... |
Font: ignore \r; Fix uv adjustment; Ignore linegap; | @@ -1956,6 +1956,11 @@ static void lovrFontUploadNewGlyphs(Font* font, uint32_t start, ColoredString* s
const char* str = strings[i].string;
const char* end = strings[i].string + strings[i].length;
while ((bytes = utf8_decode(str, end, &codepoint)) > 0) {
+ if (codepoint == ' ' || codepoint == '\n' || codepoint == '\r'... |
Use define to enable or not double animation on preload | @@ -93,6 +93,7 @@ lv_obj_t * lv_preload_create(lv_obj_t * par, const lv_obj_t * copy)
a.repeat_pause = 0;
lv_anim_create(&a);
+#if LV_PRELOAD_DOUBLE_ANIM
lv_anim_t b;
b.var = new_preload;
b.start = ext->arc_length;
@@ -107,7 +108,8 @@ lv_obj_t * lv_preload_create(lv_obj_t * par, const lv_obj_t * copy)
b.repeat = 1;
b.r... |
[SH2] Updated FMVWidescreenEnhancementPackCompatibility
Added a 3rd setting to FMVWidescreenEnhancementPackCompatibility for 4:3 displays. | @@ -388,11 +388,16 @@ void Init()
FMVWidth = Screen.TextOffset - (((Screen.fHeight * (16.0f / 9.0f)) - Screen.fHeight * (4.0f / 3.0f)) / 2.0f);
}
- if (nFMVWidescreenEnhancementPackCompatibility >= 2)
+ if (nFMVWidescreenEnhancementPackCompatibility == 2)
{
FMVWidth = Screen.TextOffset - (((Screen.fHeight * (16.0f / 9.... |
test/run_device_tests: Fix pylint warnings
BRANCH=none
TEST=cros lint test/run_device_tests.py | # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+# pylint: disable=line-too-long
"""Runs unit tests on device and displays the results.
This script assumes you have a ~/.servodrc config file with a line that
@@ -11,6 +12,8 @@ corresponds to the board being tested.
S... |
esp8266/modnetwork: Make sure to intern string passed to .config("param").
This is the proper fix for | @@ -402,30 +402,30 @@ STATIC mp_obj_t esp_config(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs
mp_obj_t val;
- #define QS(x) (uintptr_t)MP_OBJ_NEW_QSTR(x)
- switch ((uintptr_t)args[1]) {
- case QS(MP_QSTR_mac): {
+ qstr key = mp_obj_str_get_qstr(args[1]);
+ switch (key) {
+ case MP_QSTR_mac: {
uint8_t mac[6];
w... |
ToolStatus: Revert default toolbar icon config | @@ -1417,7 +1417,7 @@ LOGICAL DllMain(
PPH_PLUGIN_INFORMATION info;
PH_SETTING_CREATE settings[] =
{
- { IntegerSettingType, SETTING_NAME_TOOLSTATUS_CONFIG, L"3F" },
+ { IntegerSettingType, SETTING_NAME_TOOLSTATUS_CONFIG, L"1F" },
{ IntegerSettingType, SETTING_NAME_TOOLBAR_THEME, L"0" },
{ IntegerSettingType, SETTING_N... |
VirtualScroller: document props, remove redundant | @@ -24,19 +24,48 @@ interface RendererProps {
}
interface VirtualScrollerProps<T> {
+ /**
+ * Start scroll from
+ */
origin: 'top' | 'bottom';
+ /**
+ * Load more of the graph
+ *
+ * @returns boolean whether or not the graph is now fully loaded
+ */
loadRows(newer: boolean): Promise<boolean>;
+ /**
+ * The data to ite... |
Abort pending requests prior to stop to avoid long hang on shutdown | @@ -72,15 +72,15 @@ namespace ARIASDK_NS_BEGIN {
stopTimes[0] = GetUptimeMs() - stopTimes[0];
}
- // initiate the stop sequence
+ // cancel all pending and force-finish all uploads
stopTimes[1] = GetUptimeMs();
- result &= tpm.stop();
+ hcm.cancelAllRequests();
+ tpm.finishAllUploads();
stopTimes[1] = GetUptimeMs() - s... |
Update ReleaseNotes2_1.md | @@ -86,8 +86,8 @@ Contributors to this version (listed in order of first contribution):
do {
ENrunH(&t);
ENrunQ(&qt);
- ENnextQ(&qstep);
// collect results
+ ENnextQ(&qstep);
ENnextH(&tstep);
} while (tstep > 0);
ENcloseQ();
|
Fix glibc version check | @@ -9,6 +9,7 @@ import logging
import tempfile
import subprocess
import errno
+import distutils.version
import six
@@ -26,6 +27,7 @@ from . import environment
MAX_OUT_LEN = 1000 * 1000 # 1 mb
MAX_MESSAGE_LEN = 1500
SANITIZER_ERROR_PATTERN = r": ([A-Z][\w]+Sanitizer)"
+GLIBC_PATTERN = re.compile(r"GLIBC_([0-9.]+)")
yate... |
Geocoding autocomplete related tweaks | @@ -45,10 +45,11 @@ namespace carto { namespace geocoding {
std::lock_guard<std::recursive_mutex> lock(_mutex);
std::string safeQueryString = boost::replace_all_copy(boost::replace_all_copy(queryString, "%", ""), "_", "");
+ boost::trim(safeQueryString);
Query query;
query.options = options;
- query.tokenList = TokenLi... |
Format LICENSE to 80 columns.
It is expected that any file should be read from an 80 column terminal.
Add only newlines and spaces. | Copyright(c) 2019-2020 Intel Corporation
-Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions... |
scripts/mqtt: Add license header. | +# The MIT License (MIT)
+#
+# Copyright (c) 2013, 2014 micropython-lib contributors
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation th... |
pybricks.pupdevices.LUMPDevice: remove power hack
Sensors that require power are now automatically powered when plugged in, so we no longer need this hack at the module level. | @@ -43,13 +43,6 @@ STATIC mp_obj_t iodevices_LUMPDevice_make_new(const mp_obj_type_t *type, size_t
pb_device_get_info(self->pbdev, &_port, &id, &curr_mode, &num_values);
self->id = mp_obj_new_int(id);
- #if PYBRICKS_PY_PUPDEVICES
- // FIXME: Read sensor capability flag to see which sensor uses power. As
- // a precauti... |
docs: Style adjust | @@ -79,9 +79,9 @@ For public blockchain, you must prepare some gas for transaction fee in advance.
For consortium blockchain , you must consult the administrator to give you access permission on the blockchain. Or you may deploy your own consortium blockchain node for test purpose.
See blockchain official website for d... |
Fix documentation of error codes
error code ERROR_ZERO_LENGTH_FILE was deleted in | @@ -657,8 +657,6 @@ Functions
:c:macro:`ERROR_COULD_NOT_MAP_FILE`
- :c:macro:`ERROR_ZERO_LENGTH_FILE`
-
:c:macro:`ERROR_TOO_MANY_SCAN_THREADS`
:c:macro:`ERROR_SCAN_TIMEOUT`
@@ -681,8 +679,6 @@ Functions
:c:macro:`ERROR_COULD_NOT_MAP_FILE`
- :c:macro:`ERROR_ZERO_LENGTH_FILE`
-
:c:macro:`ERROR_TOO_MANY_SCAN_THREADS`
:c:m... |
misc.c : Add an EWOULDBLOCK check for better portability
File: misc.c
Notes: Added support for all OS' that implement EWOULDBLOCK, not only VMS
Credit: hlefebvre | @@ -141,19 +141,16 @@ _libssh2_recv(libssh2_socket_t sock, void *buffer, size_t length,
#ifdef WIN32
if(rc < 0)
return -wsa2errno();
-#elif defined(__VMS)
- if(rc < 0) {
- if(errno == EWOULDBLOCK)
- return -EAGAIN;
- else
- return -errno;
- }
#else
if(rc < 0) {
/* Sometimes the first recv() function call sets errno to ... |
test for load with changed core size
removing xfail mark and update core oprations after merged ocf patch | @@ -315,10 +315,9 @@ def _io_to_core(exported_obj: Core, data: Data):
assert completion.results["err"] == 0, "IO to exported object completion"
-@pytest.mark.xfail
@pytest.mark.parametrize("cache_mode", CacheMode)
@pytest.mark.parametrize("cls", CacheLineSize)
-def test_try_add_with_changed_core_size(pyocf_ctx, cache_m... |
Modernize cups-opsys.m4. | @@ -3157,19 +3157,27 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
-host_os_name=`echo $host_os | sed -e '1,$s/[0-9.]*$//g'`
-host_os_version=`echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}'`
+host_os_name="$(echo $host_os | sed -e '1,$s/[0-9.]*$//g')"
+host_os_version=... |
in_forward: use new log append interface | @@ -203,7 +203,7 @@ static int fw_process_array(struct flb_input_instance *in,
msgpack_pack_object(&mp_pck, entry);
}
- flb_input_chunk_append_raw(in, tag, tag_len, mp_sbuf.data, mp_sbuf.size);
+ flb_input_log_append(in, tag, tag_len, mp_sbuf.data, mp_sbuf.size);
msgpack_sbuffer_destroy(&mp_sbuf);
if (chunk_id != -1) {... |
esp_netif: store netif before register wifi rxcb | @@ -136,11 +136,10 @@ esp_err_t esp_wifi_register_if_rxcb(wifi_netif_driver_t ifx, esp_netif_receive_t
return ESP_ERR_NOT_SUPPORTED;
}
+ s_wifi_netifs[wifi_interface] = ifx->base.netif;
if ((ret = esp_wifi_internal_reg_rxcb(wifi_interface, rxcb)) != ESP_OK) {
ESP_LOGE(TAG, "esp_wifi_internal_reg_rxcb for if=%d failed w... |
Find Macros: Reformat CMake code | @@ -3,11 +3,9 @@ if (CMAKE_VERSION VERSION_LESS 3.4)
if (NOT EXISTS ${PKG_CONFIG_EXECUTABLE})
set (${OUT_VARIABLE} "")
else ()
- execute_process (
- COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=${PKG_VARIABLE} ${MODULE}
+ execute_process (COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=${PKG_VARIABLE} ${MODULE}
OUTPUT_VARIA... |
breakwater: DAGOR impl bug fix | @@ -461,9 +461,10 @@ static void dagor_prio_update(void *arg)
now = microtime();
nreqs = atomic_read(&dagor_num_reqs);
+
if (nreqs == 0 ||
- microtime() - last_prio_update < DAGOR_PRIO_UPDATE_INT ||
- nreqs < DAGOR_PRIO_UPDATE_REQS)
+ ((microtime() - last_prio_update < DAGOR_PRIO_UPDATE_INT &&
+ nreqs < DAGOR_PRIO_UPDA... |
rm menu button from oculus touch bindings;
Saw an error about this in logs, let's see if it fixes touch controllers. | "mode" : "button",
"path" : "/user/hand/right/input/b"
},
- {
- "inputs" : {
- "click" : { "output" : "/actions/lovr/in/leftMenuDown" },
- "touch" : { "output" : "/actions/lovr/in/leftMenuTouch" }
- },
- "mode" : "button",
- "path" : "/user/hand/left/input/system"
- },
{
"inputs" : {
"click" : { "output" : "/actions/lo... |
Add =label=spec feature. | {$zpwt p/$@(p/@ {p/@ q/@}) q/hoon} :: !?
{$zpzp ~} :: !!
== ::
-+$ sofa (pair skin (unit spec)) ::
+$ tyre (list {p/term q/hoon}) ::
+$ tyke (list (unit hoon)) ::
:: :::::: virtual nock
::
|- ^- (unit term)
?- -.mod
- $base ?.(?=([%atom *] p.mod) ~ `p.p.mod)
+ $base ?.(?=([%atom *] p.mod) ~ ?:(=(%$ p.p.mod) `%atom `p.p... |
storeutl: make sure s2i_ASN1_INTEGER is correctly declared | #include <openssl/err.h>
#include <openssl/pem.h>
#include <openssl/store.h>
+#include <openssl/x509v3.h> /* s2i_ASN1_INTEGER */
static int process(const char *uri, const UI_METHOD *uimeth, PW_CB_DATA *uidata,
int expected, int criterion, OSSL_STORE_SEARCH *search,
|
subtract 1 after adding the size_t to avoid overflowing CID | @@ -302,7 +302,7 @@ static struct st_h2o_hpack_header_table_entry_t *header_table_add(h2o_hpack_head
}
++table->num_entries;
- table->entry_start_index = (table->entry_start_index - 1 + table->entry_capacity) % table->entry_capacity;
+ table->entry_start_index = (table->entry_start_index + table->entry_capacity - 1) % ... |
CN tree iterator should use tree object's fanout instead of kvs create param fanout | @@ -116,8 +116,8 @@ tree_iter_next(struct cn_tree *tree, struct tree_iter *iter)
struct cn_tree_node *visit = 0;
struct cn_tree_node *prev = iter->prev;
struct cn_tree_node *node = iter->next;
- struct kvs_cparams * cp = tree->ct_cp;
- u32 child;
+ uint fanout = tree->ct_fanout;
+ uint child;
while (node && node != ite... |
cleanup: adding port info and timing to debug message
BRANCH=none
TEST=none | @@ -621,7 +621,7 @@ static int send_source_cap(int port)
bit_len = pd_transmit(port, TCPC_TX_SOP, header, src_pdo);
if (debug_level >= 2)
- CPRINTF("srcCAP>%d\n", bit_len);
+ CPRINTS("C%d srcCAP>%d", port, bit_len);
return bit_len;
}
|
links: check for soundcloud url on mount | @@ -28,6 +28,27 @@ export class LinkPreview extends Component {
timeSinceLinkPost: this.getTimeSinceLinkPost()
});
}, 60000);
+
+ // check for soundcloud for fetching embed
+ let soundcloudRegex = new RegExp('' +
+ /(https?:\/\/(?:www.)?soundcloud.com\/[\w-]+\/?(?:sets\/)?[\w-]+)/.source
+ );
+
+ let isSoundcloud = sou... |
Update kernel testnet checkpoint | @@ -27,7 +27,7 @@ static std::map<int, unsigned int> mapStakeModifierCheckpoints =
// Hard checkpoints of stake modifiers to ensure they are deterministic (testNet)
static std::map<int, unsigned int> mapStakeModifierCheckpointsTestNet =
boost::assign::map_list_of
- ( 10, 0x0e00670b )
+ ( 9999999999, 0x4038ad82 ) //tech... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.