message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
no arg error and no outlet for sprintf (changed) | @@ -548,13 +548,8 @@ static void *sprintf_new(t_symbol *s, int ac, t_atom *av)
p1 = p2 + 1;
sprintf_parsepattern(x, &p1);
}
- loud_error((t_pd *)x,
- "an object created without valid format patterns...");
- return (x);
}
-#ifdef SPRINTF_DEBUG
- loudbug_post("%d slots:", nproxies);
-#endif
+
/* CHECKED: max creates as m... |
acrn-config: add vbar[1] to SOS and pre-launched VM
Add vbar base region 1 for SOS and pre-launched VM ivshmem | @@ -280,6 +280,12 @@ def generate_file(config):
bar_0 = MmioWindow(start = int(bar_attr.addr, 16), end = int(bar_attr.addr, 16) + 0x100 - 1)
mmiolist_per_vm[vm_id].append(bar_0)
mmiolist_per_vm[vm_id].sort()
+ # vbar[1] for share memory is fix to 4K
+ free_bar = get_free_mmio([MmioWindow(start=common.SIZE_2G, end=commo... |
[core] skip excess close() when FD_CLOEXEC defined
do not run through close() loop after fork() and before execve()
when FD_CLOEXEC is defined | @@ -742,7 +742,7 @@ pid_t fdevent_fork_execve(const char *name, char *argv[], char *envp[], int fdin
}
if (0 != fdevent_set_stdin_stdout_stderr(fdin, fdout, fderr)) _exit(errno);
- #ifdef FD_CLOEXEC
+ #ifndef FD_CLOEXEC
/*(might not be sufficient for open fds, but modern OS have FD_CLOEXEC)*/
for (int i = 3; i < 256; +... |
Use prtconf to determine CPU type on AIX
for | @@ -127,6 +127,33 @@ int detect(void){
#endif
#ifdef _AIX
+ FILE *infile;
+ char buffer[512], *p;
+
+ p = (char *)NULL;
+ infile = popen("prtconf|grep 'Processor Type'");
+ while (fgets(buffer, sizeof(buffer), infile)){
+ if (!strncmp("Pro", buffer, 3)){
+ p = strchr(buffer, ':') + 2;
+#if 0
+ fprintf(stderr, "%s\n", p... |
Fix typo in manpage SSL_CONF_cmd(3)
Fixes | @@ -64,7 +64,7 @@ Allows servers to accept client-initiated renegotiation. Equivalent to
setting B<SSL_OP_ALLOW_CLIENT_RENEGOTIATION>.
Only used by servers.
-=item B<-legacyrenegotiation>
+=item B<-legacy_renegotiation>
Permits the use of unsafe legacy renegotiation. Equivalent to setting
B<SSL_OP_ALLOW_UNSAFE_LEGACY_R... |
update componen_list util for 1.3.3 | @@ -30,7 +30,7 @@ my %ohpcCategoryHeadings = ('admin' => 'Administrative Tools',
'provisioning' => 'Provisioning Tools',
'rms' => 'Resource Management',
'runtimes' => 'Runtimes',
- 'serial-libs' => 'Serial Libraries');
+ 'serial-libs' => 'Serial / Threaded Libraries');
my @compiler_familes = ("gnu","gnu7","intel");
@@ ... |
Documenting the options deprecating | @@ -14,13 +14,17 @@ B<openssl list>
[B<-1>]
[B<-commands>]
[B<-digest-commands>]
-[B<-digest-algorithms>]
-[B<-kdf-algorithms>]
+{- output_off() if $disabled{"deprecated-3.0"}; ""
+-}[B<-digest-algorithms>]
+{- output_on() if $disabled{"deprecated-3.0"}; ""
+-}[B<-kdf-algorithms>]
[B<-mac-algorithms>]
[B<-random-genera... |
run_test: Send break before flushing buffers
Some extraneous byte is being received when break is sent.
This might change might introduce a race condition. | @@ -91,9 +91,9 @@ class SerialTester(object):
self.raw_serial.timeout = 1.0
# Reset the target
+ self.raw_serial.sendBreak()
self.raw_serial.reset_output_buffer()
self.raw_serial.reset_input_buffer()
- self.raw_serial.sendBreak()
# Wait until the target is initialized
expected_resp = "{init}"
|
libhfuzz/instrument: end of __sanitizer_cov_8bit_counters_init is not included | @@ -397,6 +397,9 @@ HF_REQUIRE_SSE42_POPCNT void __sanitizer_cov_trace_pc_guard_init(uint32_t* start
/* Make sure that the feedback struct is already mmap()'d */
hfuzzInstrumentInit();
+ if ((uintptr_t)start == (uintptr_t)stop) {
+ return;
+ }
/* If this module was already initialized, skip it */
if (*start > 0) {
LOG_... |
BIO_s_mem.pod: fix indirection for out parameter **pp
BIO_get_mem_data() and BIO_get_mem_ptr() assign to *pp, not pp | @@ -56,14 +56,14 @@ zero then it will return B<v> when it is empty and it will set the read retry
flag (that is BIO_read_retry(b) is true). To avoid ambiguity with a normal
positive return value B<v> should be set to a negative value, typically -1.
-BIO_get_mem_data() sets B<pp> to a pointer to the start of the memory ... |
ieee802154/coord: Updates logic to reflect changes in nuttx 802154 code | @@ -169,7 +169,6 @@ static int coord_ack(FAR struct ieee_coord_s *coord)
static int coord_command_beacon_req(FAR struct ieee_coord_s *coord)
{
- FAR struct ieee_frame_s *rx = &coord->rxbuf;
FAR struct ieee802154_packet_s *tx = &coord->txbuf.packet;
int i;
@@ -261,14 +260,17 @@ static int coord_command(FAR struct ieee_c... |
HV: rename acrn_register to acpi_generic_address
The name of acrn_register is too generic, rename to acpi_generic_address
which is more common.
Acked-by: Kevin Tian | @@ -301,7 +301,7 @@ struct acrn_vm_pci_msix_remap {
#define SPACE_PLATFORM_COMM 10
#define SPACE_FFixedHW 0x7F
-struct acrn_register {
+struct acpi_generic_address {
uint8_t space_id;
uint8_t bit_width;
uint8_t bit_offset;
@@ -310,7 +310,7 @@ struct acrn_register {
} __attribute__((aligned(8)));
struct cpu_cx_data {
- ... |
Fix ASN1_TYPE_get/set with type=V_ASN1_BOOLEAN
BOOLEAN does not have valid data in the value.ptr member,
thus don't use it here.
Fixes
[extended tests] | int ASN1_TYPE_get(const ASN1_TYPE *a)
{
- if ((a->value.ptr != NULL) || (a->type == V_ASN1_NULL))
+ if (a->type == V_ASN1_BOOLEAN
+ || a->type == V_ASN1_NULL
+ || a->value.ptr != NULL)
return a->type;
else
return 0;
@@ -23,7 +25,9 @@ int ASN1_TYPE_get(const ASN1_TYPE *a)
void ASN1_TYPE_set(ASN1_TYPE *a, int type, void ... |
Update graph labels from commit | @@ -203,7 +203,7 @@ INT_PTR CALLBACK PhpProcessPerformanceDlgProc(
else
{
drawInfo->LabelYFunction = PhSiDoubleLabelYFunction;
- drawInfo->LabelYFunctionParameter = 0.0f;
+ drawInfo->LabelYFunctionParameter = 1.0f;
}
performanceContext->CpuGraphState.Valid = TRUE;
@@ -262,7 +262,7 @@ INT_PTR CALLBACK PhpProcessPerforma... |
move .repo file creation | @@ -140,6 +140,19 @@ foreach my $distro (@distros) {
}
}
+ # add .repo file(s)
+
+ print "Adding [base] repofile contents\n";
+ copy("repo.base.in","$tmp_dir/$distro/OpenHPC.local.repo") || die "Unable to copy repo.base.in\n";
+ if($micro) {
+ print "Adding [update] repofile contents\n";
+ open (BASE, ">>","$tmp_dir/$d... |
groups: restrict sigil color input to 6 hex chars | @@ -367,7 +367,9 @@ export class ContactCard extends Component {
onChange={this.sigilColorSet}
defaultValue={defaultColor}
key={"default" + defaultColor}
+ onKeyPress={ e => !e.key.match(/[0-9a-f]/i) ? e.preventDefault() : null}
onBlur={(() => this.setField("color"))}
+ maxLength={6}
style={{
resize: "none",
height: 40... |
Update check-commit.sh in CI to properly checkout remote branches | @@ -25,6 +25,8 @@ search_submodule() {
# Initialize submodule and get the hashes
git submodule update --init $dir/$submodule
git -C $dir/$submodule fetch --unshallow
+ git -C $dir/$submodule config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
+ git -C $dir/$submodule fetch origin
status=$(git submodule sta... |
Added MinGW to check. | @@ -95,7 +95,7 @@ function (UPNP_addUnitTest testName sourceFile)
COMMAND ${testName}
)
- if (MSVC OR MSYS)
+ if (MSVC OR MSYS OR MINGW)
UPNP_findTestEnv (${testName} TEST_ENV)
message(STATUS "Setting test-env to ${TEST_ENV}")
set_tests_properties (${testName} PROPERTIES
|
Add drawMode to lovrModelDraw Batch; | @@ -61,6 +61,7 @@ static void renderNode(Model* model, uint32_t nodeIndex, int instances) {
.instances = instances,
.pose = node->skin >= 0 ? pose : NULL
},
+ .drawMode = primitive->mode,
.transform = globalTransform,
.material = material
});
|
Remove ineffective codes
Results of assert statements are always true,
I think we don't need these assert statements anymore
JerryScript-DCO-1.0-Signed-off-by: Haesik Jun | @@ -387,7 +387,6 @@ lit_char_to_utf8_bytes (uint8_t *dst_p, /**< destination buffer */
return 2;
}
- JERRY_ASSERT (!(chr & ~LIT_UTF8_3_BYTE_CODE_POINT_MAX));
/* zzzzyyyy yyxxxxxx -> 1110zzzz 10yyyyyy 10xxxxxx */
*(dst_p++) = (uint8_t) (LIT_UTF8_3_BYTE_MARKER | ((chr >> 12) & LIT_UTF8_LAST_4_BITS_MASK));
*(dst_p++) = (u... |
Fix svg link to travis build | @@ -44,7 +44,7 @@ If you like the sound of this, [let's get started][started]. You can even try
it [in your browser][browser]! Excited? Well, come on and [get
involved][contribute]!
-[](https://travis-ci.org/wren-lang/wren)
+[ -> Dict:
if srcs:
last_src = srcs[-1]
if last_src['size'] > 0 and last_src['address'] == int(match_line.group('address'), 16):
- if '.comment' != section['name'] and '.debug_str' != section['name'] and\
- 'rodata' not in last_src['sym_name']:
-
+ if section['name'... |
[numerics] raise an exception if load_npz is not defined in scipy.sparse | @@ -89,24 +89,22 @@ def test_from_csr2():
def test_from_csc162x162():
from siconos.numerics import SBM_from_csparse, SBM_get_value, NM_display
- from scipy.sparse import csr_matrix, load_npz, linalg
+ from scipy.sparse import csr_matrix, linalg
+ try:
+ from scipy.sparse import load_npz
+ except:
+ return 0
- M = load_... |
Jenkins: prune all docker images monthly | stage("Trigger monthly libelektra/master build") {
build job: "libelektra/master", wait: false
}
+
+stage("Maintain docker nodes") {
+ parallel generateDockerMaintanenceStages()
+}
+
+/* cleanup temp docker files on all docker nodes */
+def generateDockerMaintanenceStages() {
+ def nodes = nodesByLabel label:"docker"
+... |
Shutdown sockets before closing
The server socket does not release the port it was listening for if we
just close it: we must also shutdown it. | @@ -71,6 +71,7 @@ static socket_t listen_on_port(Uint16 port) {
static void close_socket(socket_t *socket) {
SDL_assert(*socket != INVALID_SOCKET);
+ net_shutdown(*socket, SHUT_RDWR);
if (!net_close(*socket)) {
LOGW("Cannot close socket");
return;
|
flapjack: disable configs to get flash size
TEST=none
BRANCH=none | /* USB PD config */
+/* Exclude PD state names from RO image to save space */
+#ifdef SECTION_IS_RO
+#undef CONFIG_USB_PD_TCPMV1_DEBUG
+#endif
#define CONFIG_CHARGE_MANAGER
#define CONFIG_USB_POWER_DELIVERY
#define CONFIG_USB_PD_TCPMV1
#ifdef SECTION_IS_RO
#undef CONFIG_CMD_ADC
#undef CONFIG_CMD_APTHROTTLE
+#undef CONF... |
clay: resurrect ':' for file-change notifications
Instead of printing '+' for both additions and modifications. | |(!=(~ sys-changes) !=(~ (need-vane-update changes)))
==
(sys-update yoki new-data changes)
- =. ..park (emil (print deletes ~(key by changes)))
+ =. ..park
+ %- emil
+ =/ changed=(set path) ~(key by changes)
+ =/ existed=(set path) ~(key by old-lobes)
+ %^ print deletes
+ (~(int in changed) existed)
+ (~(dif in change... |
apps/blemesh_shell: Use Incomplete Timer Expired event from Testing API | @@ -61,11 +61,17 @@ static void invalid_bearer_cb(u8_t opcode)
console_printf("Invalid bearer: opcode 0x%02x\n", opcode);
}
+static void incomp_timer_exp_cb(void)
+{
+ console_printf("Incomplete timer expired\n");
+}
+
static struct bt_test_cb bt_test_cb = {
.mesh_net_recv = net_recv_ev,
.mesh_model_bound = model_bound... |
[Fix] Recep_NodeConcerned return value to MULTIHOST in TOPICS fix | @@ -512,13 +512,8 @@ __attribute__((weak)) luos_localhost_t Recep_NodeConcerned(header_t *header)
}
break;
case TOPIC:
- if (Recep_TopicCompare(header->target) == SUCCEED)
+ if ((Recep_TopicCompare(header->target) == SUCCEED) || (ctx.filter_state == false))
{
- return ctx.verbose;
- }
- else if (ctx.filter_state == fal... |
[CI] sync in +solid updates when making a pill | @@ -33,7 +33,7 @@ mkdir prev
|autoload |
|mount %
.
- [ $? = 0 ] && cp -r ../sys prev/zod/home/
+ [ $? = 0 ] && cp -r ../sys prev/zod/home/ && cp ../gen/solid.hoon prev/zod/home/gen/
} || {
: Pilling: Parent-pill pier not available, trying preceding pill commit
HASH2=$(git -C .. log -2 $HASH --format=%H -- sys/ | tail ... |
fix --no-save conflict checks | @@ -186,7 +186,8 @@ static struct argp_option options[] = {
"prompting the user",
4},
{"pw-env", OPT_PW_ENV, 0, OPTION_ARG_OPTIONAL,
- "Reads the encryption password from environment OIDC_ENCRYPTION_PW, instead of "
+ "Reads the encryption password from environment OIDC_ENCRYPTION_PW, "
+ "instead of "
"prompting the u... |
compiler-families/arm-compilers-devel: updating to work with Aug 2021 build of
arm-linux-compiler which does not hard code version info in the package name | @@ -35,7 +35,8 @@ BuildArch: aarch64
#!BuildIgnore: post-build-checks
# We need to ensure the installed version is >=21.0
-Requires: arm-linux-compiler-%{latest_installed_ver}-Generic-AArch64-RHEL-8-aarch64-linux >= 21.0
+#Requires: arm-linux-compiler-%{latest_installed_ver}-Generic-AArch64-RHEL-8-aarch64-linux >= 21.0... |
use `h2o_mem_alloc` instead of bare `malloc` | @@ -1498,7 +1498,7 @@ static void do_ssl_async(h2o_socket_t *sock)
h2o_socket_t *async_sock = h2o_evloop_socket_create(h2o_socket_get_loop(sock), async_fd, H2O_SOCKET_FLAG_DONT_READ | H2O_SOCKET_FLAG_DONT_NONBLOCK);
#endif
- struct async_data *adata = malloc(sizeof(struct async_data));
+ struct async_data *adata = h2o_... |
test(sdmmc_host): add new test to probe over SD (1-bit). | @@ -36,7 +36,7 @@ TEST_CASE("MMC_RSP_BITS", "[sd]")
TEST_ASSERT_EQUAL_HEX32(0x11, MMC_RSP_BITS(data, 59, 5));
}
-TEST_CASE("can probe SD", "[sd][test_env=UT_T1_SDMODE][ignore]")
+TEST_CASE("can probe SD (4-bit)", "[sd][test_env=UT_T1_SDMODE]")
{
sdmmc_host_t config = SDMMC_HOST_DEFAULT();
sdmmc_slot_config_t slot_confi... |
move comments to same line as fields | @@ -2206,23 +2206,16 @@ static const EVP_TEST_METHOD keypair_test_method = {
};
typedef struct {
- /* Set to 1 if verifying */
- int is_verify;
- /* Set to 1 for one shot operation */
- int is_oneshot;
- /* Digest to use */
- const EVP_MD *md;
- /* Digest context */
- EVP_MD_CTX *ctx;
+ int is_verify; /* Set to 1 if ve... |
[kernel] correct the multiple OSI test in Simulation | @@ -202,7 +202,7 @@ void Simulation::initialize(SP::Model m, bool withOSI)
if (!DSG->properties(*dsi).osi)
{
_nsds->topology()->setOSI(DSG->bundle(*dsi), *_allOSI->begin());
- if (++_allOSI->begin() != _allOSI->end())
+ if (_allOSI->size() > 1)
{
std::cout <<"Warning. The simulation has multiple OSIs but the DS number ... |
filter: pdftoraster: adapt for const getMediaBox from poppler
poppler made getMediaBox const in commit therefore adapt it
for cups-filters. | @@ -1686,7 +1686,7 @@ static void outPage(PDFDoc *doc, Catalog *catalog, int pageNo,
{
SplashBitmap *bitmap;
Page *page = catalog->getPage(pageNo);
- PDFRectangle *mediaBox = page->getMediaBox();
+ PDFRectangle mediaBox = *page->getMediaBox();
int rotate = page->getRotate();
double paperdimensions[2], /* Physical size ... |
BugId:17134677:deleted the DEVELOPERKIT_ENABLE_OTA configuration | @@ -521,7 +521,6 @@ $(CONFIG_FILE): $(AOS_SDK_MAKEFILES) | $(CONFIG_FILE_DIR)
$(QUIET)$(call WRITE_FILE_APPEND, $(CONFIG_FILE) ,AOS_RAM_STUB_LIST_FILE := $(AOS_RAM_STUB_LIST_FILE))
$(QUIET)$(call WRITE_FILE_APPEND, $(CONFIG_FILE) ,PING_PONG_OTA := $(PING_PONG_OTA))
$(QUIET)$(call WRITE_FILE_APPEND, $(CONFIG_FILE) ,AOS_... |
Immediate connection termination when integrity limit is reached | @@ -6542,13 +6542,10 @@ static int conn_prepare_key_update(ngtcp2_conn *conn, ngtcp2_tstamp ts) {
size_t secretlen, ivlen;
if ((conn->flags & NGTCP2_CONN_FLAG_HANDSHAKE_CONFIRMED) &&
- (tx_ckm->use_count >= pktns->crypto.ctx.max_encryption ||
- conn->crypto.decryption_failure_count >=
- pktns->crypto.ctx.max_decryption... |
test-suite: fix etrae binary name | @@ -64,7 +64,7 @@ setup() {
}
@test "[$testname] Verify availability of extrae-cmd binary ($LMOD_FAMILY_COMPILER/$LMOD_FAMILY_MPI)" {
- run which pprof
+ run which extrae-cmd
assert_success
}
|
Update GCC in MinGW builds.
C++17 support in MinGW was getting difficult so I dropped x86 support
for the moment. | @@ -160,9 +160,6 @@ jobs:
architecture: x86
- os: "windows-2019"
architecture: x86_64
- - os: "windows-2019"
- architecture: x86
- toolset: mingw
- os: "windows-2019"
architecture: x86_64
toolset: mingw
@@ -185,16 +182,24 @@ jobs:
if: runner.os == 'macOS'
run: |
brew install sdl2
- - name: Set up MinGW
+ - uses: msys2/... |
firpfb/example: fixing axis labels, adding legend | @@ -35,7 +35,7 @@ int main(int argc, char*argv[]) {
// output to file
FILE*fid = fopen(OUTPUT_FILENAME,"w");
fprintf(fid,"%% %s: auto-generated file\n\n", OUTPUT_FILENAME);
- fprintf(fid,"clear all;\nclose all;\n\n");
+ fprintf(fid,"clear all; close all;\n\n");
fprintf(fid,"M = %u; m = %u; num_samples = %u\n", M, m, nu... |
apps/s_client.c: harden ldap_ExtendedResponse_parse. | @@ -3091,6 +3091,8 @@ static int ldap_ExtendedResponse_parse(const char *buf, long rem)
goto end;
}
+ rem = len; /* ensure that we don't overstep the SEQUENCE */
+
/* pull MessageID */
inf = ASN1_get_object(&cur, &len, &tag, &xclass, rem);
if (inf != V_ASN1_UNIVERSAL || tag != V_ASN1_INTEGER ||
|
Changed sceLsdbGetMode to sceLsdbGetStyle | @@ -5962,8 +5962,8 @@ modules:
sceLsdbGetCategory: 0x6469796F
sceLsdbGetDiscId: 0x1F569CFC
sceLsdbGetGameDataId: 0x2FFE0E3F
- sceLsdbGetMode: 0xDEC358E4
sceLsdbGetName: 0xD02A8B85
sceLsdbGetOriginalPath: 0x92D14842
sceLsdbGetParentalLevel: 0x226B12F7
sceLsdbGetSelfPath: 0xD6B57313
+ sceLsdbGetStyle: 0xDEC358E4
|
config: add time, vsync explanation | ### Limit the application FPS
# fps_limit=
-### VSYNC [0-3]
+### VSYNC [0-3] 0 = adaptive; 1 = off; 2 = mailbox; 3 = on
# vsync=
################### VISUAL ###################
@@ -24,6 +24,9 @@ gpu_stats
### Display the frametime line graph
frame_timing
+### Display the current system time
+# time
+
### Change the hud ... |
Conditionals: Remove dead code | @@ -156,14 +156,10 @@ static int compareStrings (const char * s1, const char * s2, const Key * suffixL
{
retval = 0;
}
- else if (result > 0)
+ else
{
retval = 1;
}
- else if (result < 0)
- {
- retval = -1;
- }
}
else
{
|
http_server: metrics: prometheus: fix mark | @@ -216,9 +216,9 @@ void cb_metrics_prometheus(mk_request_t *request, void *data)
flb_sds_cat(sds, k.via.str.ptr, k.via.str.size);
flb_sds_cat(sds, "_", 1);
flb_sds_cat(sds, mk.via.str.ptr, mk.via.str.size);
- flb_sds_cat(sds, "(name=\"", 7);
+ flb_sds_cat(sds, "{name=\"", 7);
flb_sds_cat(sds, sk.via.str.ptr, sk.via.st... |
Add Develco magnetic switch to supported device list | @@ -197,6 +197,7 @@ static const SupportedDevice supportedDevices[] = {
{ VENDOR_NONE, "RES001", tiMacPrefix }, // Hubitat environment sensor, see #1308
{ VENDOR_119C, "WL4200S", sinopeMacPrefix}, // Sinope water sensor
{ VENDOR_DEVELCO, "SMSZB-120", develcoMacPrefix }, // Develco smoke sensor
+ { VENDOR_DEVELCO, "ZHMS... |
(docs) fix FIOBJ type value list | @@ -71,16 +71,17 @@ fiobj_type_enum fiobj_type(FIOBJ o);
Returns the object's type.
Valid return values are:
-`FIOBJ_T_NULL` - Object is the primitive `null`
-* `FIOBJ_T_TRUE` - Object is the primitive `true`
-* `FIOBJ_T_FALSE` - Object is the primitive `false`
-* `FIOBJ_T_NUMBER` - Object is a number.
-* `FIOBJ_T_FLOA... |
Fix rare WMI providers tab crash | * Process Hacker -
* Process properties: WMI Providor page
*
- * Copyright (C) 2017 dmex
+ * Copyright (C) 2017-2019 dmex
*
* This file is part of Process Hacker.
*
@@ -255,8 +255,12 @@ HRESULT PhpQueryWmiProviderFileName(
VARIANT variant;
if (SUCCEEDED(IWbemClassObject_Get(wbemClassObject, L"CLSID", 0, &variant, 0, 0)... |
board/kracko/board.h: Format with clang-format
BRANCH=none
TEST=none | #define CONFIG_CHARGER_OTG
#undef CONFIG_CHARGER_SINGLE_CHIP
#define CONFIG_OCPC
-#define CONFIG_OCPC_DEF_RBATT_MOHMS 21 /* R_DS(on) 10.7mOhm + 10mOhm sns rstr */
+#define CONFIG_OCPC_DEF_RBATT_MOHMS 21 /* R_DS(on) 10.7mOhm + 10mOhm sns rstr \
+ */
/* PWM */
#define CONFIG_PWM
@@ -109,12 +110,7 @@ enum pwm_channel {
};... |
Improve KPH error checking | #include <kphuserp.h>
HANDLE PhKphHandle = NULL;
-BOOLEAN PhKphVerified;
-KPH_KEY PhKphL1Key;
+BOOLEAN PhKphVerified = FALSE;
+KPH_KEY PhKphL1Key = 0;
NTSTATUS KphConnect(
_In_opt_ PWSTR DeviceName
@@ -196,13 +196,19 @@ NTSTATUS KphConnect2Ex(
if (StartService(serviceHandle, 0, NULL))
started = TRUE;
+ else
+ status = ... |
soft_serial: increase timeout | @@ -105,6 +105,8 @@ static void soft_serial_set_output(usart_ports_t port) {
}
uint8_t soft_serial_init(usart_ports_t port, uint32_t baudrate, uint8_t stop_bits) {
+ soft_serial_timer_stop();
+
DEV.baud = baudrate;
DEV.stop_bits = stop_bits;
@@ -116,7 +118,6 @@ uint8_t soft_serial_init(usart_ports_t port, uint32_t baud... |
rms/slurm: update example slurm config to include file based job completion
accounting. This will be stored in /var/log/slurm_jobcomp.log and can be used
as a simple proxy for the text based accounting file that existed in earlier
versions of slurm (more advanced sites can enable database back-ended
accounting instead) | @@ -462,6 +462,7 @@ echo "# OpenHPC default configuration" >> $RPM_BUILD_ROOT/%{_sysconfdir}/slurm.c
# 10/2/18 brad.geltz@intel.com - Enabling the task/affinity plugin to add the --cpu-bind option to srun for GEOPM
echo "TaskPlugin=task/affinity" >> $RPM_BUILD_ROOT/%{_sysconfdir}/slurm.conf.ohpc
echo "PropagateResource... |
meson: use one liner dependency on frigg | @@ -41,16 +41,12 @@ if not headers_only
libc_deps += cxxshim_dep
rtdl_deps += cxxshim_dep
- # Ideally we'd use the same one-liner as above, but we can't pass default_options that way
- frigg_dep = dependency('frigg', method: 'pkg-config', required: false)
- if not frigg_dep.found()
- message('frigg not found with pkg-c... |
minor cleanup in 16 bit stage1 | -
-;;; apparently this is the preferred technique to zero
-;;; a register in x86
-%macro zero 1
- xor %1,%1
-%endmacro
-
-
;;; we start up at 7c00 in 16 bit mode
init:
bits 16
@@ -42,29 +34,22 @@ init:
jmp ascend
smapsig equ 0x534D4150
+regionlen equ 20
;;; e820 - return the amount of total memory
-e820: zero ebx
- mov... |
docs: xCAT updates for centos7.6 | @@ -15,7 +15,7 @@ creation process using the \texttt{copycds} command assuming that the necessary
% begin_ohpc_run
% ohpc_comment_header Initialize OS images for use with xCAT \ref{sec:assemble_bos}
\begin{lstlisting}[language=bash,literate={-}{-}1,keywords={},upquote=true,keepspaces,literate={BOSVER}{\baseos{}}1]
-[sm... |
Cortex-M7: Add SCB_InvalidateICache_by_Addr | @@ -2229,6 +2229,7 @@ __STATIC_INLINE uint32_t SCB_GetFPUType(void)
#define CCSIDR_SETS(x) (((x) & SCB_CCSIDR_NUMSETS_Msk ) >> SCB_CCSIDR_NUMSETS_Pos )
#define __SCB_DCACHE_LINE_SIZE 32U /*!< Cortex-M7 cache line size is fixed to 32 bytes (8 words). See also register SCB_CCSIDR */
+#define __SCB_ICACHE_LINE_SIZE 32U /*... |
oidc-token now uses only the static library | @@ -38,7 +38,7 @@ OBJECTS := $(SOURCES:$(SRCDIR)/%.c=$(OBJDIR)/%.o)
AGENT_OBJECTS := $(filter-out $(OBJDIR)/$(ADD).o $(OBJDIR)/$(GEN).o $(OBJDIR)/$(CLIENT).o, $(OBJECTS))
GEN_OBJECTS := $(filter-out $(OBJDIR)/$(AGENT).o $(OBJDIR)/$(ADD).o $(OBJDIR)/$(CLIENT).o, $(OBJECTS))
ADD_OBJECTS := $(filter-out $(OBJDIR)/$(AGENT)... |
Fix Makefile order dependency issue causing non-parallel to fail. | @@ -537,13 +537,7 @@ $(BUILD):
$(FW_DIR):
$(MKDIR) -p $@
-BOOTLOADER_OBJS: FIRMWARE_OBJS
- $(MAKE) -C $(BOOTLDR_DIR) BUILD=$(BUILD)/$(BOOTLDR_DIR) CFLAGS="$(BOOTLDR_CFLAGS) -MMD"
-
-UVC_OBJS: FIRMWARE_OBJS
- $(MAKE) -C $(UVC_DIR) BUILD=$(BUILD)/$(UVC_DIR) CFLAGS="$(UVC_CFLAGS) -MMD"
-
-FIRMWARE_OBJS:
+FIRMWARE_OBJS: | ... |
Update theme_overrides.css
Changed colors in css file, in order to make documentation website look like official website. | overflow: visible !important;
}
}
+
+.wy-side-nav-search {
+ background-color: #bd2c2a !important;
+}
+
+.wy-nav-top {
+ background-color: #bd2c2a !important;
+}
+
+.wy-nav-top:hover {
+ color: #333333 !important;
+}
+
+.wy-nav-top a {
+ color: #fff !important;
+}
+
+.wy-nav-top a:visited {
+ color: #fff !important;
+}... |
Fix _Mapping | @@ -29,12 +29,12 @@ _V = TypeVar("_V")
class _Mapping(Generic[_K, _V]):
def __len__(self) -> int: ...
def __contains__(self, key: _K) -> bool: ...
- def __iter__(self) -> str: ...
- def iterkeys(self) -> Iterator[str]: ...
+ def __iter__(self) -> Iterator[_K]: ...
+ def iterkeys(self) -> Iterator[_K]: ...
def itervalue... |
first pass of +on-publ compiles | |= [=ship =point =peer-state]
^+ event-core
::
- !!
+ (insert-peer-state ship peer-state [life `@`encryption-key]:point)
--
::
++ insert-peer-state
|
multifile: add global keyset handle to storage plugin | @@ -318,6 +318,7 @@ static Codes initBackend (Plugin * handle, MultiConfig * mc, SingleConfig * s, K
else
{
s->storage = storage;
+ storage->global = elektraPluginGetGlobalKeySet (handle);
}
return SUCCESS;
}
|
fixed memory leak in SoloFeature_cellFiltering.cpp | @@ -74,8 +74,7 @@ void SoloFeature::cellFiltering()
//calculate filtered statistics
- bool *geneDetected = new bool[featuresNumber]; //=true if a gene was detected in at least one cell
- memset((void*) geneDetected, 0, featuresNumber);
+ std::vector<uint32_t> geneDetected(featuresNumber, 0); //=1 if a gene was detected... |
Using aliasing. | @@ -37,9 +37,9 @@ typedef enum SceCtrlButtons {
SCE_CTRL_DOWN = 0x00000040, //!< Down D-Pad button.
SCE_CTRL_LEFT = 0x00000080, //!< Left D-Pad button.
SCE_CTRL_LTRIGGER = 0x00000100, //!< Left trigger.
- SCE_CTRL_L2 = 0x00000100, //!< L2 button.
+ SCE_CTRL_L2 = SCE_CTRL_LTRIGGER, //!< L2 button.
SCE_CTRL_RTRIGGER = 0x... |
ci: revert disable esp32s2 timer test | @@ -69,6 +69,7 @@ TEST_CASE("light sleep followed by deep sleep", "[deepsleep][reset=DEEPSLEEP_RES
esp_light_sleep_start();
esp_deep_sleep_start();
}
+#endif // !TEMPORARY_DISABLED_FOR_TARGETS(ESP32S2, ESP32C3)
TEST_CASE("wake up from light sleep using timer", "[deepsleep]")
{
@@ -81,7 +82,6 @@ TEST_CASE("wake up from ... |
odissey: handle basic console SET command | @@ -63,7 +63,8 @@ enum
OD_LSHOW,
OD_LSTATS,
OD_LSERVERS,
- OD_LCLIENTS
+ OD_LCLIENTS,
+ OD_LSET
};
static od_keyword_t od_console_keywords[] =
@@ -72,6 +73,7 @@ static od_keyword_t od_console_keywords[] =
od_keyword("stats", OD_LSTATS),
od_keyword("servers", OD_LSERVERS),
od_keyword("clients", OD_LCLIENTS),
+ od_keywor... |
options/posix: Define UIO_MAXIOV | #include <bits/ssize_t.h>
#include <bits/off_t.h>
#include <bits/size_t.h>
+#include <limits.h>
#ifdef __cplusplus
extern "C" {
#endif
+#define UIO_MAXIOV IOV_MAX
+
ssize_t readv(int fd, const struct iovec *iov, int iovcnt);
ssize_t writev(int fd, const struct iovec *iov, int iovcnt);
|
[core] ensure socket ready before checking connect
ensure socket ready for writing before checking connect() status
(sanity check in case request gets rescheduled for another reason
before the socket is ready for writing) | @@ -1972,6 +1972,8 @@ static handler_t gw_write_request(gw_handler_ctx * const hctx, request_st * cons
__attribute_fallthrough__
case GW_STATE_CONNECT_DELAYED:
if (hctx->state == GW_STATE_CONNECT_DELAYED) { /*(not GW_STATE_INIT)*/
+ if (!(fdevent_fdnode_interest(hctx->fdn) & FDEVENT_OUT))
+ return HANDLER_WAIT_FOR_EVEN... |
properly zero-initialize u3_wcon linked-list pointer | @@ -2082,8 +2082,9 @@ static u3_wcon*
_proxy_wcon_new(u3_ward* rev_u)
{
u3_wcon* won_u = c3_malloc(sizeof(*won_u));
- won_u->rev_u = rev_u;
won_u->upt_u.data = won_u;
+ won_u->rev_u = rev_u;
+ won_u->nex_u = 0;
_proxy_wcon_link(won_u, rev_u);
|
libhfuzz: param 'new' -> 'n' | @@ -46,7 +46,7 @@ extern "C" {
* addr: address of original comparison
* n: new value (only if better than the old/current value)
*/
- void instrumentCmpMap(void *addr, unsigned int new);
+ void instrumentCmpMap(void *addr, unsigned int n);
#if defined(__linux__)
|
Refomat a few comments on 80 cols | @@ -277,8 +277,7 @@ BIGNUM *int_bn_mod_inverse(BIGNUM *in,
if (!BN_uadd(Y, Y, X))
goto err;
/*
- * as above, BN_mod_add_quick(Y, Y, X, n) would slow things
- * down
+ * as above, BN_mod_add_quick(Y, Y, X, n) would slow things down
*/
if (!BN_usub(A, A, B))
goto err;
@@ -348,8 +347,7 @@ BIGNUM *int_bn_mod_inverse(BIGNUM... |
removes %ames vein/pubs/packet-drop printfs | ?| ?=(~ fod)
?=(~ lew.wod.u.fod)
== == == ==
- ~& [%chew-no-will %drop her]
(emit %beer our ?:(?=(%earl rac) seg her))
=/ oub bust:puz
=/ neg =(~ yed.caq.dur.diz)
?. ?=([%our @ %her @ ~] tea)
~& [%strange-pubs tea]
[~ +>]
- ~& [%hear-pubs tea sih]
=/ our=ship (slav %p i.t.tea)
=/ her=ship (slav %p i.t.t.t.tea)
=/ gus (... |
ToolStatus: Improve statusbar update performance | @@ -674,10 +674,16 @@ VOID StatusBarUpdate(
ReleaseDC(StatusBarHandle, hdc);
+ // Note: Suspend redrawing until after updating the statusbar text
+ // otherwise SB_SETTEXT repaints multiple times during our loop. (dmex)
+ SendMessage(StatusBarHandle, WM_SETREDRAW, FALSE, 0);
SendMessage(StatusBarHandle, SB_SETPARTS, co... |
ames: don't scry dudes for every peer | ?. dry core
%.(core (slog leaf/"ames: #{<corks>} flows can be corked" ~))
::
+ =/ dudes ;; (map dude:gall nonce=@)
+ =< q.q %- need %- need
+ (rof ~ %gf `beam`[[our %$ da+now] /])
+ ::
%+ roll ~(tap by peers.ames-state)
|= [[=ship =ship-state] corks=@ core=_event-core]
?. ?=(%known -.ship-state)
corks^core
=/ =peer-sta... |
test ren/ on CI | @@ -29,6 +29,21 @@ Promise.resolve urbit
errs := Object.keys errs
if errs.length => throw Error "in #errs"
urb.reset-listeners!
+.then (urb)->
+ urb.note "Testing renderers"
+ errs = {} #REVIEW stream reduce?
+ cur = "init"
+ urb.every />> (\[[ -~]+)/ ([_,ren])-> cur := ren
+ urb.every ERROR, ->
+ unless errs[cur]
+ er... |
stm32/i2c: Fix bug with I2C4 initialisation. | @@ -222,7 +222,7 @@ void i2c_init0(void) {
#endif
#if defined(MICROPY_HW_I2C4_SCL)
memset(&I2CHandle4, 0, sizeof(I2C_HandleTypeDef));
- I2CHandle3.Instance = I2C4;
+ I2CHandle4.Instance = I2C4;
#endif
}
@@ -258,7 +258,7 @@ void i2c_init(I2C_HandleTypeDef *i2c) {
i2c_unit = 4;
scl_pin = &MICROPY_HW_I2C4_SCL;
sda_pin = &... |
[chainmaker][#436][tests]modify paramters struct name | @@ -24,27 +24,27 @@ static BOAT_RESULT chainmakerWalletPrepare(void)
BOAT_RESULT index;
//set user private key context
- wallet_config.user_prikey_config.prikey_genMode = BOAT_WALLET_PRIKEY_GENMODE_EXTERNAL_INJECTION;
- wallet_config.user_prikey_config.prikey_type = BOAT_WALLET_PRIKEY_TYPE_SECP256R1;
- wallet_config.us... |
Don't search through <FlatList /> component if meta/ctrl is being held while typing | @@ -81,6 +81,9 @@ export const FlatList = <T extends FlatListItem>({
if (!hasFocus) {
return;
}
+ if (e.metaKey || e.ctrlKey) {
+ return;
+ }
if (e.key === "ArrowDown") {
e.preventDefault();
throttledNext.current(items, selectedId || "");
|
Add comment on lzw.decoder.suffixes performance | @@ -17,7 +17,13 @@ pub status "?bad code"
pri status "?internal error: inconsistent I/O"
// TODO: move bulk data buffers like decoder.suffixes or decoder.output into
-// the workbuf?
+// the workbuf? The first attempt at this was a performance regression for
+// decoding all but the smallest GIFs. See these git commits... |
add object dictionary | #include "module_structs.h"
#include "robus_struct.h"
#include "routingTable.h"
+#include "luos_od.h"
/**
* \fn void luos_init(void)
|
Replaced other uses of int that take values other than 0 | * - Key shares for named groups not in the client's supported_groups extension.
**/
-int s2n_client_key_share_extension_size;
+uint32_t s2n_client_key_share_extension_size;
static int s2n_ecdhe_supported_curves_send(struct s2n_connection *conn, struct s2n_stuffer *out);
@@ -54,7 +54,7 @@ int s2n_client_key_share_init()... |
[software] Correct __PACK2 builtin | @@ -16,7 +16,7 @@ typedef unsigned char v4u __attribute__((vector_size(4)));
inline v2s __PACK2(const int32_t x, const int32_t y) {
v2s output;
- asm volatile("pv.pack.h %[z], %[x], %[y];"
+ asm volatile("pv.pack %[z], %[x], %[y];"
: [z] "=r"(output)
: [x] "r"(x), [y] "r"(y));
return output;
|
Added usb packet statistics | @@ -142,6 +142,7 @@ struct SurviveUSBInterface
usb_callback cb;
int which_interface_am_i; //for indexing into uiface
const char * hname; //human-readable names
+ size_t packet_count;
};
struct SurviveViveData
@@ -155,6 +156,7 @@ struct SurviveViveData
og_thread_t servicethread[MAX_USB_DEVS];
#else
struct libusb_context... |
anx7447: Read ANX7447 firmware version
Add ANX7447 firmware version reading for new adding PD firmware.
BRANCH=None
TEST=make buildall -j
Tested-by: Jimmy Wu | @@ -847,6 +847,34 @@ static void anx7447_dump_registers(int port)
}
#endif /* defined(CONFIG_CMD_TCPC_DUMP) */
+
+static int anx7447_get_chip_info(int port, int live,
+ struct ec_response_pd_chip_info_v1 *chip_info)
+{
+ int rv = tcpci_get_chip_info(port, live, chip_info);
+ int val;
+
+ if (rv)
+ return rv;
+
+ if (ch... |
hslua-marshalling: do not check type in peek*Raw
This is the responsibility of the wrapping peeker. | @@ -282,7 +282,7 @@ peekSet elementPeeker = withContext "Set"
-- | Get value at key from a table.
peekFieldRaw :: LuaError e => Peeker e a -> Name -> Peeker e a
-peekFieldRaw peeker name = typeChecked "table" Lua.istable $ \idx ->
+peekFieldRaw peeker name idx =
retrieving ("raw field '" <> name <> "'") $! do
liftLua $... |
stm32/usb: Remove mp_hal_set_interrupt_char now that it's reset at boot. | @@ -115,7 +115,6 @@ void pyb_usb_init0(void) {
#if MICROPY_HW_USB_ENABLE_CDC2
usb_device.usbd_cdc2_itf.attached_to_repl = false;
#endif
- mp_hal_set_interrupt_char(-1);
MP_STATE_PORT(pyb_hid_report_desc) = MP_OBJ_NULL;
}
|
doc: Add news entry for KDBError & keyset! | @@ -205,6 +205,8 @@ you up to date with the multi-language support provided by Elektra.
- Add the `elektra-sys` crate which contains raw bindings to libelektra for Rust. _(Philipp Gackstatter)_
- Add the `elektra` crate which contains safe wrapper methods for the raw bindings. The crate contains bindings for the low-le... |
linux-raspberrypi: bump to Linux version 4.19.113 | -LINUX_VERSION ?= "4.19.108"
+LINUX_VERSION ?= "4.19.113"
LINUX_RPI_BRANCH ?= "rpi-4.19.y"
-SRCREV = "4137a0c092ab26fd3b40f49b321988e99800d085"
+SRCREV = "4f2a4cc501c428c940549f39d5562e60404ac4f7"
require linux-raspberrypi_4.19.inc
|
board/casta/board.c: Format with clang-format
BRANCH=none
TEST=none | @@ -65,10 +65,10 @@ static void ppc_interrupt(enum gpio_signal signal)
/* ADC channels */
const struct adc_t adc_channels[] = {
- [ADC_TEMP_SENSOR_AMB] = {
- "TEMP_AMB", NPCX_ADC_CH0, ADC_MAX_VOLT, ADC_READ_MAX+1, 0},
- [ADC_TEMP_SENSOR_CHARGER] = {
- "TEMP_CHARGER", NPCX_ADC_CH1, ADC_MAX_VOLT, ADC_READ_MAX+1, 0},
+ [A... |
clean up outgoing requests in security drivers | $them :: outbound request
?~ p.kyz
=+ sud=(need (~(get by kes) hen))
- %= +>.$
+ =. +>.$
+ %_ +>.$
mow :_(mow [ged [%give %thus sud ~]])
q.ask (~(del by q.ask) sud)
kes (~(del by kes) hen)
==
+ ::
+ =/ driver=(unit [key=[user (list @t)] val=driv])
+ =/ drivers ~(tap by sec)
+ |- ^- (unit [key=[user (list @t)] val=driv]... |
CMSIS-Core(M): Fixed ARM MPU implementation for Cortex-M0+.
Cortex-M0+ does not have a dedicated memory fault and used hard fault instead. | @@ -108,7 +108,9 @@ __STATIC_INLINE void ARM_MPU_Enable(uint32_t MPU_Control)
__DSB();
__ISB();
MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk;
+#ifdef SCB_SHCSR_MEMFAULTENA_Msk
SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk;
+#endif
}
/** Disable the MPU.
@@ -117,7 +119,9 @@ __STATIC_INLINE void ARM_MPU_Disable()
{
__DSB();
_... |
Use printer-make-and-model value for USB gadget. | @@ -735,6 +735,45 @@ enable_usb_printer(
// Get the information for this printer - vendor ID, product ID, etc.
num_devid = papplDeviceParseID(printer->device_id, &devid);
+ if (printer->driver_data.make_and_model[0])
+ {
+ // Get the make and model from the driver info...
+ char *ptr; // Pointer into make-and-model
+
+... |
doc/man3: remove copy&paste leftover
Fixes | @@ -51,9 +51,6 @@ X509_NAME_ENTRY_get_object() and X509_NAME_ENTRY_get_data() can be
used to examine an B<X509_NAME_ENTRY> function as returned by
X509_NAME_get_entry() for example.
-X509_NAME_ENTRY_create_by_txt(), X509_NAME_ENTRY_create_by_NID(),
-and X509_NAME_ENTRY_create_by_OBJ() create and return an
-
X509_NAME_E... |
Add num_threads to wgs64 | @@ -23,6 +23,12 @@ int main(void) {
{
// nothing
}
+ #pragma omp target teams distribute parallel for num_threads(64)
+ for (int k =0; k < n; k++)
+ {
+ // nothing
+ }
+ printf("Succeeded\n");
printf("Succeeded\n");
return fail;
|
config-tools: add validation to vuart widget
vuart widget don't have empty line check for required fields.
Added in this patch. | <label>VM name: </label>
</b-col>
<b-col md="4">
- <b-form-select v-model="VUARTConn.endpoint[0].vm_name" :options="vmNames"></b-form-select>
+ <b-form-select :state="validation(VUARTConn.endpoint[0].vm_name)" v-model="VUARTConn.endpoint[0].vm_name" :options="vmNames"></b-form-select>
+ <b-form-invalid-feedback>
+ must... |
lpc55xx_hic: Add documentation for MCU-LINK and MCU-LINK-PRO support | @@ -31,17 +31,60 @@ Reference design is based on [MCU-Link](https://www.nxp.com/design/development-b
| SWDIO / TMS | I/O | PIO0_2 | 52 |
| SWO / TDO | I | PIO0_3 | 53 |
| TDI | O | PIO0_1 | 2 |
-| nRESET | O | PIO0_19 | 58 |
+| nRESET | I/O | PIO0_19 | 58 |
| GNDDetect | I | PIO0_22 | 50 |
| UART |
| UART RX | I | PIO0... |
Rename cmd to argv
This is more explicit.
PR <https://github.com/Genymobile/scrcpy/pull/2405> | @@ -102,23 +102,23 @@ show_adb_err_msg(enum process_result err, const char *const argv[]) {
process_t
adb_execute(const char *serial, const char *const adb_cmd[], size_t len) {
- const char *cmd[len + 4];
+ const char *argv[len + 4];
int i;
process_t process;
- cmd[0] = get_adb_command();
+ argv[0] = get_adb_command();... |
disable osd gesture when osd is in-active | @@ -81,12 +81,13 @@ void gestures() {
ledcommand = 1;
state.aux[AUX_CHANNEL_GESTURE] = 0;
}
+
+#ifdef ENABLE_OSD
if (command == GESTURE_LRL) {
while (osd_pop_screen() != OSD_SCREEN_CLEAR)
;
}
-#ifdef ENABLE_OSD
if (command == GESTURE_OSD_UP) {
osd_handle_input(OSD_INPUT_UP);
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.